diff options
author | Niko Tyni <ntyni@debian.org> | 2009-05-05 09:07:57 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-05-05 16:41:02 +0200 |
commit | 46f1a616f56f167d0a5af6a2d90cd809d2bd03d1 (patch) | |
tree | 09f7a30033804f0069723571e3c6adfe9ad8143f /lib | |
parent | 12016aadb5ccd03002d026d37636471225cf9aa5 (diff) | |
download | perl-46f1a616f56f167d0a5af6a2d90cd809d2bd03d1.tar.gz |
Document that FileCache uses symbolic references
As noted by Marc Haber in <http://bugs.debian.org/318579>,
using FileCache.pm as per the SYNOPSIS doesn't work under
'use strict'. This is a bit unexpected nowadays, so mention
it in the documentation.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/FileCache.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/FileCache.pm b/lib/FileCache.pm index 285307f37d..5028291998 100644 --- a/lib/FileCache.pm +++ b/lib/FileCache.pm @@ -8,6 +8,8 @@ FileCache - keep more files open than the system permits =head1 SYNOPSIS + no strict 'refs'; + use FileCache; # or use FileCache maxopen => 16; @@ -71,6 +73,9 @@ FileCache does not store the current file offset if it finds it necessary to close a file. When the file is reopened, the offset will be as specified by the original C<open> file mode. This could be construed to be a bug. +The module functionality relies on symbolic references, so things will break +under 'use strict' unless 'no strict "refs"' is also specified. + =head1 BUGS F<sys/param.h> lies with its C<NOFILE> define on some systems, |