I am converting a bash script to Perl. I am not sure what the equivalent of an export
is.
LOC=/tmp/1/
export LOC
For example, for the above two lines, what would be the equivalent Perl code?
my $LOC = '/tmp/1/';
# what should go here?
$ENV{LOC} = "/tmp/1";
The contents of %ENV
are propagated to the environment of the child processes of a Perl script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With