P is for Practical | |
PerlMonks |
Reading in a file not recognizing linesby bradcathey (Prior) |
on May 21, 2006 at 23:14 UTC ( [id://550836]=perlquestion: print w/replies, xml ) | Need Help?? |
bradcathey has asked for the wisdom of the Perl Monks concerning the following question: Fellow Monasterians, I've done this before, but not often. Normally, this...
OR
...renders a nice array of one line per element. Today, the above placed the entire file of 10 lines into one element. I hex-dumped the file and noted the line endings were 0D, but I'm not sure what they should be. To get it to work, I had to do this...
Has this something to do with how the text file was saved? Thanks! —Brad "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
Back to
Seekers of Perl Wisdom
|
|