> -Original Message-
> From: AMORE,JUAN (HP-Roseville,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 10:58 PM
> To: Beginners@Perl. Org (E-mail)
> Subject: Trying to use the => notation to print the values from this
> hash
>
>
> Hel
ber 2001 03:58
> To: Beginners@Perl. Org (E-mail)
> Subject: Trying to use the => notation to print the values from this
> hash
>
>
> Hello Perl Gurus,
> I'm trying to print anyone of these values using the => notation.
> I believe I can use => but not so
On Wed, 2001-11-14 at 03:57, AMORE,JUAN (HP-Roseville,ex1) wrote:
> %Unix= ("SHELL" => "/bin/csh",
>"PAGER" => "more",
>"DB" => "mysql");
>
> print "Value: ,=> $unix{SHELL}\n";
The => in the last line is not necessary:
print "Value: ", $unix{"SHELL"}\n";
will DWYM.
As a side poin
Hello Perl Gurus,
I'm trying to print anyone of these values using the => notation.
I believe I can use => but not so sure how to use it.
Can someone give me an example,...I tried different ways but have exhausted
all means.
Any hints:)
Many Thanks!
%Unix= ("SHELL" => "/bin/csh",
"PAGER"