Problems? Is your data what you think it is? | |
PerlMonks |
PadWalker's closed_over - but for our variables?by LanX (Saint) |
on Apr 03, 2021 at 15:24 UTC ( [id://11130774]=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi 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.
Cheers Rolf
Back to
Seekers of Perl Wisdom
|
|