Hi,
Is there a method to pass a shell assigned variable to perl?
For ex:
ABC=xyc
perl -ne 'print $ABC'
In awk you could use ENVIRON[varname], is there something
compatible in perl.
Willy Perez
Liz Claiborne IT
(201) 295-7011
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