Hi,
It works because $ENV gives you access to your current environment and child environments. Once your foo.pl ends your FOO will be gone.
Try executing foo.sh once more after foo.pl finishes. You'll see the value of FOO being empty.
In reply to Re^2: Setting Environment variables in Perl
by gargle
in thread Setting Environment variables in Perl
by knsridhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |