in reply to Re: Scope difference between compile-time and run-time
in thread Scope difference between compile-time and run-time ( if( my $x = ... ) {...} )

I didn't replicate it but the SO example was with for not if

One might build test-cases by evaling code with all possible compounds.

I suppose the effect is also visible in the OP-tree.

I seem to remember we discussed it before, and that it's related to different phasing with the scope's scratch-pad where lexicals live.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^2: Scope difference between compile-time and run-time