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.pl
    foo

%ENV is documented in perlvar.

See also the Env standard module, which is specially handy for PATH- like variables.

-- fxn

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to