Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by LanX (Saint)
on Jun 01, 2021 at 19:40 UTC ( [id://11133385]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133385]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2025-07-15 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.