Do you know where your variables are? | |
PerlMonks |
Re: Optimise file line by line parsing, substitute SPLITby nbtrap (Sexton) |
on Jun 06, 2013 at 02:04 UTC ( [id://1037347]=note: print w/replies, xml ) | Need Help?? |
If memory is not lacking, you can slurp the entire file and then process the lines, as in:
This has a good chance to speed things up, presumably because perl will make fewer calls to read(2).
In Section
Seekers of Perl Wisdom
|
|