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?
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.
|
|---|