in reply to DBIx::Recordset or DBI COUNT sql
my $sth = $dbh->prepare('select count(*) from table_name'); $sth->execute; my ($count) = $sth->fetchrow; $sth->finish; print "count: $count\n"; [download]