in reply to Setting environment!!

If you are wanting to add a directory to the include paths for modules you can:

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