in reply to Which subroutine or method was called?
$ perl -MDDS -MTime::HiRes=sleep -e " Dump\&sleep" $CODE1 = \&Time::HiRes::sleep; $ perl -MDDS -MTime::HiRes=sleep -le " print main->can(q/sleep/)" CODE(0x9a38ac) $ perl -MDDS -MTime::HiRes=sleep -e " Dump( main->can(q/sleep/) )" $CODE1 = \&Time::HiRes::sleep;
Maybe see also module_info/pfunc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Which subroutine or method was called?
by QM (Parson) on Oct 15, 2012 at 13:19 UTC | |
by toolic (Bishop) on Oct 15, 2012 at 13:56 UTC | |
|
Re^2: Which subroutine or method was called?
by QM (Parson) on Oct 18, 2012 at 12:50 UTC |