in reply to Setting environment!!
use lib qw(/your/path); use YourModule;
The lib pragma will basically add that directory to @INC so you can include modules from that directory. If you want to set that env variable from within the script you can:
BEGIN { $ENV{PERL5LIB} = "/foo"; }
Cheers,
KM
|
|---|