Arijit Das wrote on 05/30/2006 02:51 AM:
I need to search for "/dir2/bin" path component in my $ENV{PATH}, and then, insert "/newpath/bin" just before "/dir2/bin". [...] Is there any Perl Array (somewhat like @INC) which I can modify to have my PATH changed?
Maybe this CPAN module can help you: http://search.cpan.org/~dsb/Env-Path-0.16/ As was previously said, any $PATH changes only affect child processes. -Aleksandar _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs