in reply to Using Modules in a local directory
If you put a perl module in the directory you call perl from, let's say /home/jeroenes/work as in:
Than perl searches the current/calling dir: /home/jeroenes/work for .pm modules. The use Blah::Foo; statement is seen as "look for Foo.pm in ./Blah/". So use Blah::Foo; will fetch /home/jeroenes/work/Blah/Foo.pm for you.cd /home/jeroenes/work perl /var/scripts/script1.pl mylocalfile.txt
As for your second question, see the docs of ExtUtils::MakeMaker. In short, add a LIB directive to the commandline: perl Makefile.pm LIB=/home/jeroenes/work"
Hope this helps,
Jeroen
"We are not alone"(FZ)
|
|---|