Thread do-anweisungen werden nicht ausgeführt (13 answers)
Opened by .mike. at 2006-12-04 16:40

GwenDragon
 2006-12-09 13:04
#30254 #30254
User since
2005-01-17
14848 Artikel
Admin1
[Homepage]
user image
Unter http://search.cpan.org/~nwclark/perl-5.8.8/lib/FindBin.pm#KNOWN_ISSUES steht explizit, das FindBin nicht richtig unter mod_perl läuft:
Quote
KNOWN ISSUES

If there are two modules using FindBin from different directories under the same interpreter, this won't work. Since FindBin uses a 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 FindBin in modules that you plan to put on CPAN. To make sure that FindBin will work is to call the again function:
use FindBin;
FindBin::again(); # or FindBin->again;

In former versions of FindBin there was no again function. The workaround was to force the BEGIN block to be executed again:
delete $INC{'FindBin.pm'};
require FindBin;

View full thread do-anweisungen werden nicht ausgeführt