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

Re: Pronounceable syntax or beloved punctuation?

by tadman (Prior)
on May 17, 2002 at 00:56 UTC ( [id://167157]=note: print w/replies, xml ) Need Help??


in reply to Pronounceable syntax or beloved punctuation?

I think glob and readline are great at specifying exactly what you are doing, and both are resistant to casual errors, especially when your glob and filehandle can look so close:
my $line = <$fh>; # Filehandle? my $file = <*fs>; # Glob?
Much better to be specific, like you say:
my $line = $fh->readline(); # Filehandle! my ($file) = glob("*fs"); # Glob!
The angle brackets and the whole DWIM thing are for "programmer efficiency" and not necessarily "program clarity". In some cases, you would want to avoid them entirely.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found