Update and of course I'm wrong. See jwkrahn's reply below. Ouch.
I'm already thinking in terms of Perl 6, where the $0, $1, $2 etc. are aliases into the match object in $/. There you can't get $2 or so leaking from the previous match, and everything is pretty much transparent.
In reply to Re: Leaking Regex Captures
by moritz
in thread Leaking Regex Captures
by SuicideJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |