laziness, impatience, and hubris | |
PerlMonks |
Re: text file readingby pfaut (Priest) |
on Dec 18, 2007 at 02:18 UTC ( [id://657588]=note: print w/replies, xml ) | Need Help?? |
The getLine routine reads the file until it finds a non-blank line or end of file. You only called it once so you only read one line from the file. If you want to read them all, you need to loop on print $line->getLine(); until it returns undef.
In Section
Seekers of Perl Wisdom
|
|