in reply to setting envirnment variables from array.
The "now what" part is to shove the values into the special %ENV hash. See perlvar for the details.
$ENV{ $var } = $value; [download]