Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: why don't filehandles have punctuation before their name?

by clintp (Curate)
on Apr 24, 2001 at 04:34 UTC ( [id://74922]=note: print w/replies, xml ) Need Help??


in reply to why don't filehandles have punctuation before their name?

Consider the fact that in older dialects of perl (Perl 4 and such) that the parser can generally guess when something is supposed to be a filehandle and when it's not. (First argument of open, first argument to flock, close, etc...).

(Remember too that functions used to have mandatory ()'s and &'s! So the barewords weren't so ambiguous then...)

It only begins to get tricky and nasty when you have indirect filehandles and use <> for globbing.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found