in reply to Re^2: assigning a perl variable in shell
in thread assigning a perl variable in shell

In shell:

BAZ="some value" export BAZ perl program.pl

In Perl:

print $ENV{'BAZ'} . "\n";

Output:

some value