Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: $_[0] as a filehandle

by sauoq (Abbot)
on Oct 29, 2003 at 02:23 UTC ( [id://302887]=note: print w/replies, xml ) Need Help??


in reply to Re: $_[0] as a filehandle
in thread $_[0] as a filehandle

First of all, you're using a reference to a glob as a filehandle - that's bound not to work.

Uh... "Bound not to work"?

perl -le '$x = \*STDOUT; print $x "Bzzzt."'

That used to be the "accepted" way of passing handles around... :-)

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: $_[0] as a filehandle
by batkins (Chaplain) on Oct 30, 2003 at 11:52 UTC
    Yes, you're right. I should have tested it out before making that claim. :) I still prefer lexically-scoped filehandles whenever possible, but thanks for pointing out my mistake.

    The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://302887]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found