X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcacheout.pl;h=d2669a1cfa82f60c16250250790eae66f0c640ca;hb=90564d9841a592d4954f5fb3ef7a8ffd42cd7c65;hp=48d594bf82591fefb6f9f2c4d5846fea06b7c47c;hpb=a0d0e21ea6ea90a22318550944fe6cb09ae10cda;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/cacheout.pl b/lib/cacheout.pl index 48d594b..d2669a1 100644 --- a/lib/cacheout.pl +++ b/lib/cacheout.pl @@ -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 () { $maxopen = $1 - 4 if /^\s*#\s*define\s+NOFILE\s+(\d+)/; }