summaryrefslogtreecommitdiff
path: root/lib/AutoLoader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AutoLoader.pm')
-rw-r--r--lib/AutoLoader.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AutoLoader.pm b/lib/AutoLoader.pm
index b38915872c..ea19e502a0 100644
--- a/lib/AutoLoader.pm
+++ b/lib/AutoLoader.pm
@@ -33,7 +33,8 @@ AUTOLOAD {
eval {require $name};
}
elsif ($AUTOLOAD =~ /::DESTROY$/) {
- eval "sub $AUTOLOAD {}";
+ # eval "sub $AUTOLOAD {}";
+ *$AUTOLOAD = sub {};
}
if ($@){
$@ =~ s/ at .*\n//;