Do you know where your variables are? | |
PerlMonks |
Re^2: The value of pattern match variable $&by bart (Canon) |
on May 15, 2006 at 09:57 UTC ( [id://549419]=note: print w/replies, xml ) | Need Help?? |
It's by design. There's an implicit local for match variables in blocks.
And re "reliability": a regexp that doesn't match will not affect the match variables, they will not (necessarily) be undef, but the value they got on the last succesful regexp — with the above caveat.
In Section
Seekers of Perl Wisdom
|
|