This line:
$hash{'key'} = @array;
... does not do what you think it does. Hashes can only take scalar values, not arrays. You can store a reference to the array:
$hash{'key'} = \@array;
... and then retrieve it back. See Data::Dumper for inspecting your data structures, References Quick Reference on how to get at the data.
In reply to Re: Accessing and printing an array, INSIDE of a hash
by Corion
in thread Accessing and printing an array, INSIDE of a hash
by perlpreben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |