$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
On Tue, 5 Oct 2004 14:32:27 -0400, Willy Perez <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>