laziness, impatience, and hubris | |
PerlMonks |
Re^2: 'grouping' substrings?by revdiablo (Prior) |
on Feb 01, 2006 at 16:42 UTC ( [id://527108]=note: print w/replies, xml ) | Need Help?? |
I dont know whether using $& is effecient or not. Using $& is not efficient, and usually to be avoided. See the entry in perlvar for details. Update: perhaps I was a bit imprecise. I'd say something that "imposes a considerable performance penalty on all regular expression matches" is inefficient, but I guess it depends on what type of inefficiency we're talking about.
In Section
Seekers of Perl Wisdom
|
|