Welcome to the Monastery | |
PerlMonks |
Re: notabug quiz (Spoiler for #3)by Enlil (Parson) |
on Dec 12, 2003 at 10:05 UTC ( [id://314265]=note: print w/replies, xml ) | Need Help?? |
$x="ad"; for ($x) { /a/gc; /\Gb?/gc; ok 3, /\Gc?/gc; } This is documented behaviour in perlre: Repeated patterns matching zero length substrings. update: added the part of the quiz i am referring to. -enlil
In Section
Meditations
|
|