Hi,
The format of env variable PATH seems to change with
OS/shell. For example,
in sh it is like
"/dir1/bin:/dir2/bin:."
while in csh, it is like
(/dir1/bin /dir2/bin .)
I need to search for "/dir2/bin" path component in my
$ENV{PATH}, and then, insert "/newpath/bin" just
before "/dir2/bin". But due to different format of
PATHs in different os/shells, I am not able to do that
in a very clean way.
Is there any Perl Array (somewhat like @INC) which I
can modify to have my PATH changed?
Thanks,
Arijit
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs