From 11cd456717832dc5bfb7473a0667ecb3cbb5071b Mon Sep 17 00:00:00 2001 From: Stas Bekman Date: Wed, 10 Oct 2001 07:57:10 +0800 Subject: Message-Id: <3BC31E56.60805@stason.org> p4raw-id: //depot/perl@12395 --- lib/FindBin.pm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'lib/FindBin.pm') 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 from different directories +under the same interpreter, this won't work. Since C uses +C 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 in modules that you plan to put +on CPAN. The only way to make sure that C will work is to force +the C 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 -- cgit v1.2.1