diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-01-06 11:17:17 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-01-06 11:17:17 -0600 |
commit | 474145e4ee8da0ea89f42e6a1deb394bacdb50ad (patch) | |
tree | 0e3ca87084d024a12262a16a61509937ab442449 | |
parent | 271509d85b3b1baa8480551b4cdcfe40fdbab5c4 (diff) | |
download | circular-require-474145e4ee8da0ea89f42e6a1deb394bacdb50ad.tar.gz circular-require-474145e4ee8da0ea89f42e6a1deb394bacdb50ad.zip |
actually, just stop trying to restore things at all
-rw-r--r-- | lib/circular/require.pm | 7 | ||||
-rw-r--r-- | t/basic.t | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/circular/require.pm b/lib/circular/require.pm index dcb138a..0319878 100644 --- a/lib/circular/require.pm +++ b/lib/circular/require.pm @@ -127,13 +127,6 @@ sub _require { } sub import { - my $stash = Package::Stash->new('CORE::GLOBAL'); - if ($saved_require_hook) { - $stash->add_package_symbol('&require' => $saved_require_hook); - } - else { - $stash->add_package_symbol('&require' => sub { CORE::require(@_) }); - } # not delete, because we want to see it being explicitly disabled $^H{'circular::require'} = 0; } @@ -35,7 +35,7 @@ no circular::require; clear(); } -circular::require->import; +use circular::require; { my $warnings; |