QM has asked for the wisdom of the Perl Monks concerning the following question:
I'm having a funny problem, and suspect that my uses are stepping on each other. How to determine which subroutine is actually getting called?
For instance:
use Time::HiRes qw(sleep); sleep(5);
This imports sleep over the builtin. How do I check that the sleep I call is the sleep I want?
And while we're at it, how to do the same for a method -- that is, I can say: $object->method();, but where does that method live?
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Which subroutine or method was called?
by toolic (Bishop) on Oct 09, 2012 at 12:19 UTC | |
Re: Which subroutine or method was called?
by 2teez (Vicar) on Oct 09, 2012 at 13:50 UTC | |
Re: Which subroutine or method was called?
by Anonymous Monk on Oct 09, 2012 at 12:12 UTC | |
by QM (Parson) on Oct 15, 2012 at 13:19 UTC | |
by toolic (Bishop) on Oct 15, 2012 at 13:56 UTC | |
by QM (Parson) on Oct 18, 2012 at 12:50 UTC |
Back to
Seekers of Perl Wisdom