in reply to Count Number of rows retrieved from SELECT
my $res = $dbh->selectall_hashref($stmt, $key); print scalar(keys %$res); [download]
my $res = $dbh->selectall_arrayref($stmt); print scalar(@$res); [download]