in reply to length or array in a hash
Hi, ongaku,
You can do like so:
Output%hash = ( 'one' => [1], 'two' => [2,2], 'three' => [3,3,3], ); foreach my $array (keys %hash){ print $array," :", scalar @{$hash{$array}},$/; }
You might want to check the function scalarthree :3 one :1 two :2
|
|---|