perlpreben has asked for the wisdom of the Perl Monks concerning the following question:
I have the following code
my @array = ("a","b","c","d","e"); my %hash; $hash{'key'} = @array;
This is all dandy, but when I try to print it, I only get the scalars out (number of values inside the array)
while (my ($key, @value) = each(%hash)){ my @extracted_array = @value; }
So how can I access the array inside of the hash for further manipulation?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing and printing an array, INSIDE of a hash
by Corion (Patriarch) on Sep 25, 2011 at 14:36 UTC | |
|
Re: Accessing and printing an array, INSIDE of a hash
by RichardK (Parson) on Sep 25, 2011 at 14:40 UTC | |
|
Re: Accessing and printing an array, INSIDE of a hash
by planetscape (Chancellor) on Sep 26, 2011 at 17:06 UTC |