See perlref, perldsc, and perllol for more info.$hash{$key} = [ qw(foo bar baz) ]; # The [ ] make an anonymous array + reference print "@{$hash{$key}}\n"; # output the whole array print $hash{$key}->[0], "\n"; # output an individual element of + an array
In reply to Re: Help with hash/array data structure
by duff
in thread Help with hash/array data structure
by robinbowes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |