in reply to Re: pattern match -vs- *ix grep
in thread pattern match -vs- *ix grep

That only matters if either the pattern changes (which it doesn't), or you have a really, really ancient perl.

For the past several years, Perl knows the pattern hasn't changed, and will not recompile the regex. (Use -Dr if you're not convinced).

Replies are listed 'Best First'.
Re^3: pattern match -vs- *ix grep
by dave_the_m (Monsignor) on Apr 07, 2005 at 18:40 UTC
    Ah yes, silly me. It bypasses the calls to the gvsv and regcomp ops though, so there's still a marginal saving.

    Dave.