Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: $_[0] fails for file handle?

by jwkrahn (Monsignor)
on Jul 17, 2012 at 04:45 UTC ( #982128=note: print w/ replies, xml ) Need Help??


in reply to $_[0] fails for file handle?

That is because the <> operator has two functions.    my $line = <$_[0]> ; is the same as my $line = glob "$_[0]" ; while my $line = <$FH> ;
is the same as my $line = readline $FH ;


Comment on Re: $_[0] fails for file handle?
Select or Download Code
Re^2: $_[0] fails for file handle?
by sophate (Beadle) on Jul 17, 2012 at 04:55 UTC

    Thanks for your reply. That explains the myth!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2015-07-06 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls