Thanks Errin/Jim/David,

Hi Willy,

Perl will auto-magically take all of your shell environment variables and
put them in a hash:
  %ENV
where the keys are the variable names and the values are the values!

so, for your example above,
  # perl -e 'print "$ENV{ABC}\n"'
should work!

--Errin

You can do the same in perl with the  special hash named %ENV.
for instance: print $ENV{'SHELL'}

or you can use the env module:
perldoc -f env


THanks
Jim

$ENV{"ABC"}

This works for me, but I don't have a good understanding of what is going on
to make it work.

HTH,
David




Willy Perez
Liz Claiborne IT
(201) 295-7011

Reply via email to