in reply to Re: Variable scoping oddity inside (??{ ... })
in thread Variable scoping oddity inside (??{ ... })
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Variable scoping oddity inside (??{ ... })
by diotalevi (Canon) on Oct 31, 2003 at 15:06 UTC |