X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFileCache.pm;h=e1c5ec4c8a88b6e5ca5c4328ceff21341d2adc99;hb=2dc00d5bf719a9ed74e0637ca74ee27c3de3fb36;hp=3d01371b3b32853e4371984abbfc22a3cccbea79;hpb=c07a80fdfe3926b5eb0585b674aa5d1f57b32ade;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/FileCache.pm b/lib/FileCache.pm index 3d01371..e1c5ec4 100644 --- a/lib/FileCache.pm +++ b/lib/FileCache.pm @@ -19,7 +19,7 @@ maximum. =head1 BUGS F lies with its C define on some systems, -so you may have to set $cacheout::maxopen yourself. +so you may have to set $FileCache::cacheout_maxopen yourself. =cut @@ -53,7 +53,7 @@ sub cacheout { ($file) = @_; unless (defined $cacheout_maxopen) { if (open(PARAM,'/usr/include/sys/param.h')) { - local $.; + local ($_, $.); while () { $cacheout_maxopen = $1 - 4 if /^\s*#\s*define\s+NOFILE\s+(\d+)/;