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
In reply to Re: Setting environment!!
by KM
in thread Setting environment!!
by vnpandey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |