print `echo %TERM%`; $ENV{TERM} = 'vt220'; # In some code, far, far away... print `echo %TERM%`; #### C:\tmp>perl t.pl %TERM% vt220