You could use
my $rowCount; my $role; while (my @row_18 = $sth18->fetchrow_array) { $role = $row_18[0]; ++$rowCount; }
Are you using the while loop to get the last record of many ?
pojIn reply to Re^2: DBD::Sybase $sth->rows returns -1
by poj
in thread DBD::Sybase $sth->rows returns -1
by Perl300
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |