|
|
| XP is just a number | |
| PerlMonks |
Re: remove lines matching list of stringsby roboticus (Canon) |
| on Nov 08, 2012 at 21:37 UTC ( #1002993=note: print w/ replies, xml ) | Need Help?? |
|
The fastest way? If you're on a unix box, I'd try using grep. It's specialized for that sort of task. If you just want to do it with perl, I think reading the entire file into a scalar and then building the giant regex may be the fastest. But you may want to use Benchmark and test to find out what's fast or not. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||