more useful options | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> still the same problem with this:
> ... > my $actual_sleep = \&CORE::GLOBAL::sleep; This should solve it in a robust manner:
Point is you are changing sleep globally, but some other modules might be trying to do the same thing already. (well ...) If you install your override later, you'll be playing safe.
Cheers Rolf
updateeven more robust with defined instead of exists , see Haarg's comment in this thread for details. In reply to Re^3: Copy a builtin sub to a different name and then override (robust)
by LanX
|
|