This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Term::Readline patch for AmigaOS
[perl5.git] / lib / FileCache.pm
index 3d01371..4fd6331 100644 (file)
@@ -53,7 +53,7 @@ sub cacheout {
     ($file) = @_;
     unless (defined $cacheout_maxopen) {
        if (open(PARAM,'/usr/include/sys/param.h')) {
-           local $.;
+           local ($_, $.);
            while (<PARAM>) {
                $cacheout_maxopen = $1 - 4
                    if /^\s*#\s*define\s+NOFILE\s+(\d+)/;