|XP is just a number|
PadWalker's closed_over - but for our variables?by LanX (Cardinal)
|on Apr 03, 2021 at 15:24 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
PadWalker is great for identifying and manipulating closed over private variables declared with my.
But what about package variables declared with our?
What's the best way to do this?
Do I have to parse the optree or do we have a Pad for our-lexicals too?
little demo which only works for private vars
PS: I'm aware of peek_our(), it just only works from inside the sub.