In shell:
BAZ="some value" export BAZ perl program.pl
In Perl:
print $ENV{'BAZ'} . "\n";
Output:
some value
In reply to Re^3: assigning a perl variable in shell
by RonW
in thread assigning a perl variable in shell
by scheidr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |