in reply to Can we make $& better?
In perl 5.10, $^MATCH will be equivalent to $& but at the same time the global speed penalties will not come into play. This means $& can be left alone.
The price to pay is that you will need to add the /p modifier flag to the pattern in order to tell perl that you want them. A reasonable trade-off.
• another intruder with the mooring in the heart of the Perl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can we make $& better? (need)
by tye (Sage) on Sep 06, 2007 at 21:22 UTC | |
by bart (Canon) on Sep 07, 2007 at 20:28 UTC | |
by demerphq (Chancellor) on Sep 12, 2007 at 18:22 UTC | |
by tye (Sage) on Sep 12, 2007 at 19:12 UTC | |
by demerphq (Chancellor) on Sep 12, 2007 at 19:24 UTC | |
by tye (Sage) on Sep 12, 2007 at 20:49 UTC |
In Section
Seekers of Perl Wisdom