[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-beginners
Subject: RE: reading a hash of arrays
From: "Frank K." <fkleinbu () gmail ! com>
Date: 2014-11-20 2:27:10
Message-ID: 069801d00469$7dd6a300$7983e900$ () gmail ! com
[Download RAW message or body]
Thanks for the hint.. And I was looking forward to a night of heavy
drinking.. Oh well, might as well code into the night..
Thanks again.. flk k
-----Original Message-----
From: Shawn H Corey [mailto:shawnhcorey@gmail.com]
Sent: Wednesday, November 19, 2014 5:09 PM
To: beginners@perl.org
Subject: Re: reading a hash of arrays
On Wed, 19 Nov 2014 17:03:40 -0600
"Frank K." <fkleinbu@gmail.com> wrote:
> I can't do @array1 = @hash{one};
@array1 = @{ $hash{one} };
$hash{one} contains a reference to an array. By dereferencing it with @{ ...
}, you get the array.
--
Don't stop where the ink does.
Shawn
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional
commands, e-mail: beginners-help@perl.org http://learn.perl.org/
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic