This is not possible under Unix unless you get some cooperation from your invoking shell. The calling shell is a separate program which you cannot modify. The common approach is to output a shell script from your program and evaluate that shell script in the calling shell:
$ eval $(myscript.pl)
In reply to Re: unsetenv in perl
by Corion
in thread unsetenv in perl
by sagibeli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |