Hmm, the following works for me on two Unix-like boxes (Mac OS X and GNU/Linux):
use strict; %ENV = ( foo => 'bar '); system( 'printenv' );
Looking in the code for system, it forks internally, which is what I'd expect. I wouldn't expect this to be very portable outside of Unix, though.
In reply to Re: Re: setting env vars from hash fails for me
by chromatic
in thread setting env vars from hash fails for me
by ccarden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |