foreach my $value (ref $rowData ? reverse @{ $rowData->[0] } : $rowData) {