my $Table = $dbObject->getTable; my $tableDimensions = @$Table; my $numRows = $tableDimensions->[0]; #the error occurs here for (my $timesThru=0; $timesThru<=$numRows; $timesThru++) {