in reply to perl performance vs egrep

How log do you spend on a single cat infile >outfile?
Beside that, I think without testing, this is faster as your re:
print OFILE unless /^(?:K[LM]|P[AM]|S[LZ]|CP|ME|WX|YZ)XX1/;
Boris

Replies are listed 'Best First'.
Re^2: perl performance vs egrep
by Anonymous Monk on Jan 24, 2005 at 10:58 UTC
    Beside that, I think without testing, this is faster as your re:
    Without testing as well, I doubt that. The Perl regexp engine has a pretty good optimizer, and it does quite well with fixed strings. But one of the easiest ways to bypass the optimizer is the use of character classes.