http://www.perlmonks.org?node_id=998006


in reply to Which subroutine or method was called?

OR, you could use CORE to call bulitin like so:

use strict; use warnings; use Time::HiRes qw(); # just like others said Time::HiRes::sleep(2); # module sleep function CORE::sleep(2); # bulitin sleep function
Then to see what went down call your script like so perl -MO=Deparse perlscript.plthen you see this:
use Time::HiRes (); use warnings; use strict 'refs'; &Time::HiRes::sleep(2); sleep 2;

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me