summaryrefslogtreecommitdiff
path: root/lib/FindBin.pm
diff options
context:
space:
mode:
authorStas Bekman <stas@stason.org>2001-10-10 07:57:10 +0800
committerAbhijit Menon-Sen <ams@wiw.org>2001-10-10 16:22:32 +0000
commit11cd456717832dc5bfb7473a0667ecb3cbb5071b (patch)
tree9bfbf01f194c4c92e5de18d5cbcd55a9c4ba2e3e /lib/FindBin.pm
parentecfc864712c3adc100dc5f6f36fc5dfc21c6f29b (diff)
downloadperl-11cd456717832dc5bfb7473a0667ecb3cbb5071b.tar.gz
Message-Id: <3BC31E56.60805@stason.org>
p4raw-id: //depot/perl@12395
Diffstat (limited to 'lib/FindBin.pm')
-rw-r--r--lib/FindBin.pm16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/FindBin.pm b/lib/FindBin.pm
index 41cd0fa507..8be9cb6b5a 100644
--- a/lib/FindBin.pm
+++ b/lib/FindBin.pm
@@ -39,9 +39,23 @@ directory.
$RealBin - $Bin with all links resolved
$RealScript - $Script with all links resolved
+=head1 KNOWN ISSUES
+
+If there are two modules using C<FindBin> from different directories
+under the same interpreter, this won't work. Since C<FindBin> uses
+C<BEGIN> block, it'll be executed only once, and only the first caller
+will get it right. This is a problem under mod_perl and other persistent
+Perl environments, where you shouldn't use this module. Which also means
+that you should avoid using C<FindBin> in modules that you plan to put
+on CPAN. The only way to make sure that C<FindBin> will work is to force
+the C<BEGIN> block to be executed again:
+
+ delete $INC{'FindBin.pm'};
+ require FindBin;
+
=head1 KNOWN BUGS
-if perl is invoked as
+If perl is invoked as
perl filename