RE: Trying to use the => notation to print the values from this hash

2001-11-14 Thread Bob Showalter
> -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

RE: Trying to use the => notation to print the values from this hash

2001-11-14 Thread mark crowe (JIC)
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

Re: Trying to use the => notation to print the values from this hash

2001-11-13 Thread Chris Ball
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

Trying to use the => notation to print the values from this hash

2001-11-13 Thread AMORE,JUAN (HP-Roseville,ex1)
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"