in reply to Re: Inspecting the name of a variable
in thread Inspecting the name of a variable
localized variables are propagated into any called subs.
apparently PadWalker is missing a pad to investigate or should extend it's documentation.
UPDATE: ... well only if aliases have a pad...
UPDATE: yes it's because of the aliasing:
our $orig=666; for our $x (42,$orig) { say $bar,our_name($bar); say $x,our_name($x); }
10$bar 42 10$bar 666$orig
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Inspecting the name of a variable
by remiah (Hermit) on Sep 02, 2012 at 14:46 UTC | |
by LanX (Saint) on Sep 02, 2012 at 20:50 UTC | |
by remiah (Hermit) on Sep 03, 2012 at 01:18 UTC | |
by LanX (Saint) on Sep 03, 2012 at 09:09 UTC |