with this line:$length = $Hash{$key};
Remember that you're storing references to the arrays as the values of your hash. You need to dereference those values...$length = @{$Hash{$key}};
-Ton
-----
Be bloody, bold, and resolute; laugh to scorn
The power of man...
In reply to Re: Array length within a hash
by ton
in thread Array length within a hash
by TStanley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |