To be more precise, Perl actually used the same instance of closure in this case. If Perl creates a new instance of the closure every time it enters the regexp, then this behavior will disappear.
In reply to Re: Re: Variable scoping oddity inside (??{ ... })
by pg
in thread Variable scoping oddity inside (??{ ... })
by Roger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |