diff options
Diffstat (limited to 'lib/AutoLoader.pm')
-rw-r--r-- | lib/AutoLoader.pm | 3 |
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//; |