in reply to Re^3: How do I set env. Variables from Perl with shell script
in thread How do I set env. Variables from Perl with shell script

Its already defined in %ENV
perl -MData::Dumper -le"print Dumper(\%ENV)"