|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Usage of grep on a fileby rafl (Friar) |
| on Apr 07, 2006 at 07:36 UTC ( #541814=note: print w/ replies, xml ) | Need Help?? |
|
First of all, use qr// to precompile your patterns:
Also don't slurp the file into an array. Use something more memory-efficient:
Cheers, Flo
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||