my %hash = ( foo => [ 0,1,2 ], bar => [ 7,8,9 ] );
To access individual elements:
my $element = $hash{foo}[2];
For more, see perldsc.
In reply to Re: Arrays & Hashes
by friedo
in thread Arrays & Hashes
by Bugorr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |