http://qs321.pair.com?node_id=464999


in reply to Select COUNT in MySQL

$crows is a reference to an array, so you have to dereference it to get at the array elements:

print $code->[0];

See perlref and perlreftut for more information on references in Perl

CU
Robartes-