in reply to Re: setting env vars from hash fails for me
in thread setting env vars from hash fails for me

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.