in reply to Re: Zen and the Art of Match Variables
in thread Zen and the Art of Match Variables

Perl 6 and parrot regexes are much more self-contained, so this sort of thing won't happen. (I'm torn as to whether to make it happen for the perl 5 compatibility code, but I'm thinking not right now) The only real reason it works like this in perl now is because regexes predate lexicals--if we were doing it over again for perl 5 it wouldn't happen the way it does now.
  • Comment on Re: Re: Zen and the Art of Match Variables