Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: How to open file inside loops with file names generated using an array?

by roboticus (Chancellor)
on May 28, 2018 at 12:50 UTC ( [id://1215320]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to open file inside loops with file names generated using an array?
in thread How to open file inside loops with file names generated using an array?

skooma:

You missed one bit that choroba put in his code: He wrapped the filename in brockets (<>) so that whitespace at the beginning or ending of the line would be more obvious. I expect that he's thinking your code would print something like:

<foo >

instead of the expected:

<foo>

because you may have gotten your data from a file without remembering to chomp off the line endings.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

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

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

    No recent polls found