Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Which subroutine or method was called?

by 2teez (Priest)
on Oct 09, 2012 at 13:50 UTC ( #998006=note: print w/ replies, xml ) Need Help??

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

Comment on Re: Which subroutine or method was called?
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998006]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-09-20 17:03 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (160 votes), past polls