in reply to PadWalker's closed_over - but for our variables?
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PadWalker's closed_over - but for our variables?
by LanX (Saint) on Apr 03, 2021 at 16:25 UTC | |
by haukex (Archbishop) on Apr 03, 2021 at 16:42 UTC | |
by ikegami (Patriarch) on Apr 04, 2021 at 05:38 UTC | |
by LanX (Saint) on Apr 05, 2021 at 15:37 UTC | |
by ikegami (Patriarch) on Apr 05, 2021 at 21:59 UTC | |
| |
by LanX (Saint) on Apr 03, 2021 at 16:55 UTC | |
by haukex (Archbishop) on Apr 03, 2021 at 17:09 UTC | |
by LanX (Saint) on Apr 03, 2021 at 18:19 UTC |