in reply to Setting environment!!

If what you want is to add directories to Perl's search path, you can use the use lib pragma:
use lib qw(/your/dir1 /your/dir2);
You could also manually insert the directory into @INC:
push @INC, qw(/your/dir1 /your/dir2);
I believe these two approaches are functionally identical, but someone may correct me about that.

--ZZamboni

Replies are listed 'Best First'.
RE: Re: Setting environment!!
by KM (Priest) on Jul 03, 2000 at 22:17 UTC
    Pretty close. The lib pragma will muck with @INC at compile time, but pushing like that isn't until runtime. For these two to be basically functionally identical, you would want to wrap the push in a BEGIN block:

    <CODE> BEGIN { push @INC, '/your/path'; } <CODE>

    Cheers,
    KM