in reply to Re: The value of pattern match variable $&
in thread The value of pattern match variable $&

IIRC, there is also a big performance hit, if any of these appear anywhere in your program.

  • Comment on Re^2: The value of pattern match variable $&

Replies are listed 'Best First'.
Re^3: The value of pattern match variable $&
by ikegami (Patriarch) on May 15, 2006 at 15:07 UTC
    Regexps without captures are faster than regexps with captures. Using any of those three variables causes all regexps in that interpreter instance (similiar to "in that process") to behave as if they had captures. That slows down all regexps without captures.