Depends exactly what you want to do.
You're out of luck if you're trying to change PATH for use once your script has exited. If your script changes PATH, it will revert to its former value once your script terminates. This is how shells work in *NIX, and nothing to do with Perl.
If you want to change PATH for subsequent system calls then just change $ENV{PATH}.
In reply to Re: EXPORT variables
by FunkyMonk
in thread EXPORT variables
by sonalig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |