http://qs321.pair.com?node_id=78944


in reply to Re: Re: Common Regex Gotchas
in thread Common Regex Gotchas

Happily, that doesn't appear to be the case. I don't see any occurence of the $& et al. variables in the code for Benchmark.pm

The real problem here is the use of /e on the substitution, when this would work just as well and be much more efficient: s/(\w+)/\U$1/g;