worked for me and ought to be more class-independent and future-compatible.my $x = *Time::HiRes::gettimeofday; # ... # ... # ... *Time::HiRes::gettimeofday = sub { $x; };
Update: I should have said it worked for me when testing on a core module, rather than the one actually raised! :("
-M
Free your mind
In reply to Re: restore overridden XS methods
by Moron
in thread restore overridden XS methods
by dk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |