|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Extract the linesby RMGir (Parson) |
| on Aug 26, 2010 at 11:46 UTC ( #857425=note: print w/ replies, xml ) | Need Help?? |
|
Unlikely in a homework exercise, but if your file was REALLY large, this is a perfect place to use the brilliant File::SortedSeek - it would let you find your matching lines in O(log n) time. Mike
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||