Fixing extra -I's with PERL_CORE
[p5sagit/p5-mst-13.2.git] / lib / AutoLoader.pm
index 564aeb1..10d13ba 100644 (file)
@@ -88,6 +88,7 @@ AUTOLOAD {
        }
     }
     my $save = $@;
+    local $!; # Do not munge the value. 
     eval { local $SIG{__DIE__}; require $filename };
     if ($@) {
        if (substr($sub,-9) eq '::DESTROY') {