Perl arrays start at element 0, not 1 like you seem to be assuming.
In reply to Re: Incrementing a hash of array value by EdwardG in thread Incrementing a hash of array value by Anonymous Monk