Re: passing variables from perl to the system

2005-08-18 Thread Jeff 'japhy' Pinyan
On Aug 18, Eliyah Kilada said: Do anyone know how to pass the perl variables to the system in order to be used later?! A process cannot modify its parent's environment. You can set environment variables to be used during the Perl program that are visible to the Perl program's child processe

Re: passing variables from perl to the system

2005-08-18 Thread Xavier Noria
On Aug 18, 2005, at 13:38, Eliyah Kilada wrote: Do anyone know how to pass the perl variables to the system in order to be used later?! Perl offers built-in support for environment variables via the %ENV hash: % cat foo.pl $ENV{FOO} = "foo"; system q(echo $FOO); % perl foo