This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
2 more VMS test tweaks
[perl5.git] / lib / cacheout.pl
index 48d594b..d2669a1 100644 (file)
@@ -1,3 +1,12 @@
+#
+# This library is no longer being maintained, and is included for backward
+# compatibility with Perl 4 programs which may require it.
+#
+# In particular, this should not be used as an example of modern Perl
+# programming techniques.
+#
+# Suggested alternative: FileCache
+
 # Open in their package.
 
 sub cacheout'open {
@@ -35,7 +44,7 @@ $seq = 0;
 $numopen = 0;
 
 if (open(PARAM,'/usr/include/sys/param.h')) {
-    local($.);
+    local($_, $.);
     while (<PARAM>) {
        $maxopen = $1 - 4 if /^\s*#\s*define\s+NOFILE\s+(\d+)/;
     }