- or download this
$ export A=1
$ echo $A
...
$$ exit
$ echo $A
1
- or download this
$ echo $A;perl -wE'say $ENV{A};$ENV{A}=2;say$ENV{A}';echo
$A
...
};qx{echo \$A};'
1
B
- or download this
BEGIN {
$ENV{test} = "B";
}
use My::Module; # Which initializes with $ENV{test}