Perl: Can you place an array inside of a hash?

ryan.morgan09

New member
I'm trying to create a structure consisting of arrays with 12 elements each inside of a hash with $array[0] . ";" . $array[2] being the key. I'm getting "14" printed when I call print $hash[$key];
 
You need to show more of your code. The syntax for a hash is curly braces; square brackets indicate a list.

$hash{$key} is a hash element
 
Back
Top