|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Read from a file one line at a time?by bitingduck (Friar) |
| on Feb 20, 2012 at 17:29 UTC ( #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
|
|
||||||||||||||||||||