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
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