You're printing the length of a string that goes something like "ARRAY(0xDEADBEEF)"
You need to dereference the arrayref: my $itemCount = @{ $hash{three} }; my $lastIndex = $#{ $hash{three} }
In reply to Re: length or array in a hash
by SuicideJunkie
in thread length or array in a hash
by ongaku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |