Problems? Is your data what you think it is? | |
PerlMonks |
Re: Read from a file one line at a time?by bitingduck (Chaplain) |
on Feb 20, 2012 at 17:29 UTC ( [id://955111]=note: print w/replies, xml ) | Need Help?? |
Assuming you've already opened the filehandle FILE you can read all the lines into a list with
or read one line at a time with
there are more compact ways to do the latter, as well.
In Section
Seekers of Perl Wisdom
|
|