Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Open several files and read line by line

by u65 (Chaplain)
on Dec 05, 2015 at 00:54 UTC ( #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
Node Status?
node history
Node Type: note [id://1149434]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2021-05-12 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (125 votes). Check out past polls.

    Notices?