dk has asked for the wisdom of the Perl Monks concerning the following question:
and local *Time::HiRes::gettimeofday = sub {} is not acceptable, I'd like the change to persist after I quit the lexical scope. So, the question: how do I restore an overridden XS method?my $x = *Time::HiRes::gettimeofday; ... change ... *Time::HiRes::gettimeofday = $x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: restore overridden XS methods
by Corion (Patriarch) on Mar 01, 2007 at 10:26 UTC | |
by bart (Canon) on Mar 01, 2007 at 12:04 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2007 at 13:11 UTC | |
by bart (Canon) on Mar 01, 2007 at 13:26 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2007 at 13:35 UTC | |
| |
by dk (Chaplain) on Mar 01, 2007 at 10:38 UTC | |
|
Re: restore overridden XS methods
by Moron (Curate) on Mar 01, 2007 at 12:49 UTC | |
by almut (Canon) on Mar 01, 2007 at 14:13 UTC |