Don't ask to ask, just ask | |
PerlMonks |
Re: Reducing memory usage while matching log entriesby meetraz (Hermit) |
on Feb 01, 2006 at 18:15 UTC ( [id://527132]=note: print w/replies, xml ) | Need Help?? |
BTW, you don't have to track the current line number yourself
(or prepend an empty string to your array so it doesn't start with zero).
Just use $. (Yes, dollar sign followed by period) it will contain the current line number of the last read filehandle.
In Section
Seekers of Perl Wisdom
|
|