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

Re: Open several files and read line by line

by u65 (Chaplain)
on Dec 05, 2015 at 00:54 UTC ( [id://1149434]=note: print w/replies, xml ) Need Help??


in reply to Open several files and read line by line

I agree with BillKSmith. With a C background, when starting with Perl I tended to use short names like $fp (for "file pointer") or $fh (for "file handle") for the actual file reference. For file name variables I like to use variants of $fname.

Replies are listed 'Best First'.
Re^2: Open several files and read line by line
by jcb (Parson) on Dec 06, 2015 at 01:04 UTC
    What's wrong with using $fh if you only have one file in scope? Even the documentation uses it as an example.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found