Does talking about "closing over" (aliases to) package variables even make sense? Isn't one of the properties of lexical variables being closed over that they can't be accessed from the outsidecaller, which isn't true for "global" package variables? (In other words, your code could just as well be sub { print "$my,$BLA::our" }.)
XY Problem? Or do you just want to get a list of all the variables that a coderef accesses?
In reply to Re: PadWalker's closed_over - but for our variables?
by haukex
in thread PadWalker's closed_over - but for our variables?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |