in reply to Re: Regex combining /(foo|bar)/ slower than using foreach (/foo/,/bar/) ???
in thread Regex combining /(foo|bar)/ slower than using foreach (/foo/,/bar/) ???  

No, Perl compiles the regex once where it is defined with qr.

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: Regex combining /(foo|bar)/ slower than using foreach (/foo/,/bar/) ???
  • Download Code