|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re^3: Bug or feature? s/// and the g optionby ysth (Canon) |
| on Oct 14, 2007 at 19:46 UTC ( [id://644787]=note: print w/replies, xml ) | Need Help?? |
|
AIUI, without the i, before the regex engine proper is entered, there's an optimization that makes it search for an XX followed later by a Y. That optimization rejects a match, and when that happens, it bypasses the bug that's setting $1 to undef. Seems to be fixed for 5.10.0.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||