SuzuBell has asked for the wisdom of the Perl Monks concerning the following question:
my %HoA; for my $key ( keys %HoA ) { // gives me the correct first value in this key my $value = $HoA{$key}[0]; // does not give me the correct number of values in this key my $size = length($HoA{$key}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is it possible to determine the number of values for a particular hash key?
by state-o-dis-array (Hermit) on Oct 24, 2013 at 15:03 UTC | |
by SuzuBell (Acolyte) on Oct 24, 2013 at 15:46 UTC | |
|
Re: Is it possible to determine the number of values for a particular hash key?
by toolic (Bishop) on Oct 24, 2013 at 15:08 UTC | |
|
Re: Is it possible to determine the number of values for a particular hash key?
by pajout (Curate) on Oct 25, 2013 at 09:20 UTC |