in reply to restore overridden XS methods
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: restore overridden XS methods
by almut (Canon) on Mar 01, 2007 at 14:13 UTC |