laziness, impatience, and hubris | |
PerlMonks |
Re: $1 does not reset to undefby keszler (Priest) |
on Oct 25, 2013 at 11:31 UTC ( [id://1059623]=note: print w/replies, xml ) | Need Help?? |
As you noticed, $1 does not get set to undef on a failed match. The solution is to test the match:
In Section
Seekers of Perl Wisdom
|
|