Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Finding Line numbers in a fileby reasonablekeith (Deacon) |
on Apr 04, 2007 at 15:29 UTC ( [id://608299]=note: print w/replies, xml ) | Need Help?? |
Nice, but inefficient, and gets worse the bigger the text file is.
Do not do this, use the others, they increase in a linear proportion with the size of the text file, and do not require entire file to be loaded into memory.
--- my name's not Keith, and I'm not reasonable.
In Section
Seekers of Perl Wisdom
|
|