And here - to make things complete - goes an example how to push values onto such an array stored in a hash:
use Data::Dumper; my %hash; for my $key ('A'..'C') { for my $value (1..3) { push @{$hash{$key}}, $value; } } print Dumper(\%hash);
-- Hofmator
In reply to Re: Arrays as Hash Values
by Hofmator
in thread Arrays as Hash Values
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |