http://www.perlmonks.org?node_id=464998


in reply to Select COUNT in MySQL

Hi, just try declaring
my @crows = ...
instead of
my $crows = ...
update
Oops I did not see the ref....
robartes is right