go ahead... be a heretic | |
PerlMonks |
Re: Perl 5.10 Regex - Named capture variablesby kyle (Abbot) |
on Apr 16, 2008 at 13:57 UTC ( [id://680800]=note: print w/replies, xml ) | Need Help?? |
This is the behavior that I'd expect. Specifically, %+ gets cleared before each regexp execution, so any matches you got before will not be carried over. This is equally true of capture variables $1, $2, etc.
In Section
Seekers of Perl Wisdom
|
|