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
    DDS would be?

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Re^2: Which subroutine or method was called?
by QM (Parson) on Oct 18, 2012 at 12:50 UTC
    Can't locate object method "ARRAY" via package "B::SPECIAL" at C:/stra +wberry/perl/site/lib/Data/Dump/Streamer.pm line 3698.

    This seems to be a (recurring?) bug. I see it also in Ubuntu 10.4, Perl 5.10.1, as well as the above Strawberry Perl 5.16.1.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of