sub BEGIN in embperl ?

2009-10-19 Thread Jean-Christophe Boggio
Hello, I wish to "use" some library that is not located on the PATH so I try this kind of code inside my base.epl : sub BEGIN { my $script = $ENV{SCRIPT_FILENAME}; $script =~ s/^(.*)\/.*?$/$1/; push @INC,$script; push @INC,"$script/.."; } But it does not seem to

Re: sub BEGIN in embperl ?

2009-10-19 Thread Dirk Melchers
Hi, Am 19.10.2009 um 12:45 schrieb Jean-Christophe Boggio: Hello, I wish to "use" some library that is not located on the PATH so I try this kind of code inside my base.epl : sub BEGIN { my $script = $ENV{SCRIPT_FILENAME}; $script =~ s/^(.*)\/.*?$/$1/; push @INC,$scrip

Re: sub BEGIN in embperl ?

2009-10-19 Thread Jean-Christophe Boggio
Dirk Melchers a écrit : We 'use lib "xxx"' in our startup.pl and that works. But be careful: the used libs are only compiled once and available in all websites (if you use "mod_perl") - so namespaces of your modules should be different to avoid "funny" things... I see what you mean by "funny

FastCGI deployment

2009-10-19 Thread Alexander Hartmaier
Hi! I've migrated my current mod_perl setup to mod_fcgid (not fastcgid, because fcgid is included in Debian) today but the processes terminate as soon as the request has been handled which leads to really bad performance. Any idea why this is happening? That's my current apache config from the