Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Open several files and read line by line

by BillKSmith (Monsignor)
on Dec 04, 2015 at 16:29 UTC ( [id://1149398]=note: print w/replies, xml ) Need Help??


in reply to Open several files and read line by line

The code you have shown should not have the glob problem. I suspect that in another version of this code, you used $filename when you meant $file. Your choice of names for these variables is very misleading. $file contains the name of the file. $filename contains a file handle (Strictly, a reference to a file handle). Perl does not care what names you choose to use, but more descriptive names would help you prevent this kind of error.
Bill
  • Comment on Re: Open several files and read line by line

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-20 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found