|Pathologically Eclectic Rubbish Lister|
use lib in cgi envby AlexTape (Monk)
|on Nov 05, 2012 at 13:40 UTC||Need Help??|
AlexTape has asked for the
wisdom of the Perl Monks concerning the following question:
i try to "use lib" in a cgi environment.
# test environment
# productive environment
Server Root = /home/user/anotherPage/
use lib (randomly?) looks in the wrong directory
i tried FindBin, but itīs completely weird.
he gets the upload.pm out of the relative /modules (/home/user/test-workspace/trunk/modules/upload.pm)
but the other modules are loaded from here:/home/user/webpage/modules/download.pm
- i dont understand that..
i see that there are actually three locations
download.pm => modules/download.pm
upload.pm => /home/user/webpage/modules/upload.pm
transfer.pm => /home/user/test-workspace/trunk/module/transfer.pm
but all of them should be located in
$perlig =~ s/pec/cep/g if 'errors expected';