Other posters are correct, it can't be done the way you're trying. However you could make your perl program print out what you want in VAR1 and in your shell script do:
export VAR1 = `/your/perl/script.pl`;
Hope that helps
In reply to Re: export environment variable from a perl program
by cfreak
in thread export environment variable from a perl program
by asifk1981
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |