Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The general idiom is to use a while loop to iterate
over the lines in the file, reading in one line at a time
and processing it, then moving on to the next.
Something like this: Depending on your situation, you might also want to check out the -p and -n command line flags to perl (perlrun). If these are files specified on the command line, you can use the special construct: This might be useful in a situation like to process each of the files on the command line. In reply to Re: Large file processed line by line
by btrott
|
|