in reply to Re: Maximum sub-arrays?
in thread Maximum sub-arrays?

push @{ dbData[$index] }, $somevalue;

Is that a typo or was that the source of your problem?

push @{ $dbData[$index] }, $somevalue; # ^ # missing the $