Do you know where your variables are? | |
PerlMonks |
Re: Matching with /g: Is this a bug?by ikegami (Patriarch) |
on May 29, 2013 at 20:33 UTC ( [id://1035916]=note: print w/replies, xml ) | Need Help?? |
Noone seems to have mentioned the bug is your inappropriate use of g in scalar/void context. Remove the g from the first match, and it'll work fine.
In Section
Seekers of Perl Wisdom
|
|