![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^6: Can we make $& better? (need)by tye (Sage) |
on Sep 12, 2007 at 20:49 UTC ( #638677=note: print w/replies, xml ) | Need Help?? |
BTW, my test was to change the string used in the match and then see if $1 also changed. That isn't a perfect test because it might be that the string is copied but $1 doesn't correctly use the copy made, for example. Here is a more polished version and two sets of results:
Which shows I'd missed the only "will copy" case in 5.6. - tye
In Section
Seekers of Perl Wisdom
|
|