Why not just use SQL?
my $r = $dbh->selectall_arrayref("SELECT avg(...), count(1) FROM prosp +ects"); my ($avg,$count) = @{$r->[0]};
update: Just as you were saying. Not sure how I managed that bad a mis-read while retaining enough brain cells to type straight... <blush>
In reply to Re^2: AVG returns COUNT
by ChemBoy
in thread AVG returns COUNT
by DrAxeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |