in reply to Use of uninitialized value in addition
for my $valNum (0 .. $total){ [download]
for my $valNum (0 .. $total-1){ [download]