OlegG has asked for the wisdom of the Perl Monks concerning the following question:
Want to getsub a { b() } sub b { c() } sub c { my ($caller, $args) = get_first_caller_with_args } a("test", [1,2,3]);
$caller = \&a, $args = ["test", [1,2,3]];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get first caller and its arguments
by Corion (Patriarch) on Sep 12, 2011 at 15:59 UTC | |
by OlegG (Monk) on Sep 12, 2011 at 16:46 UTC | |
by runrig (Abbot) on Sep 12, 2011 at 16:59 UTC | |
by OlegG (Monk) on Sep 12, 2011 at 17:19 UTC | |
by runrig (Abbot) on Sep 12, 2011 at 17:25 UTC | |
by OlegG (Monk) on Sep 12, 2011 at 17:27 UTC | |
|
Re: Get first caller and its arguments
by DrHyde (Prior) on Sep 13, 2011 at 10:14 UTC |