|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Re: Re: Common Regex Gotchasby chipmunk (Parson) |
| on May 08, 2001 at 20:30 UTC ( [id://78944]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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;
In Section
Tutorials
|
|
||||||||||||||||||||||||||||||