in reply to Re: Shell/Perl Variables
in thread Shell/Perl Variables

Depending on whether the environment variables are exported or not, your suggestion might not work:

% FOO=bar % echo $FOO bar % perl -le 'print shift' $FOO bar % perl -le 'print $ENV{FOO}' %

--
g r i n d e r

Replies are listed 'Best First'.
Re: Shell/Perl Variables
by Abigail (Deacon) on Jun 28, 2001 at 01:32 UTC
    In the original example, the shell script was called from elsewhere, and the variables were setup outside of the shell. So, whether the shell exports variables or not is irrelevant.

    -- Abigail