G'day waytoperl,
To access an element in your hash of arrays, you should be using $hash{$key}[$i], not @{$hash{$key}}[$i]. See perldsc: HASHES OF ARRAYS.
Your 12 my $incN = @{$hash{$key}}[N]; statements seem pointless: you only use $inc3 and there's no need for even that assignment as you already have the value in $hash{$key}[3] (see previous point).
Your code indicates that you think all your arrays have (at least) 13 elements. Your "Hash Table" output shows this is not the case.
Check the values you are using with the defined function to determine which is undefined. See your diagnostics output for why you would check for definedness.
-- Ken
In reply to Re: Perl ERROR for uninitiated value or string
by kcott
in thread Perl ERROR for uninitiated value or string
by waytoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |