in reply to Counting rows Sqlite

Judging by its name, I would guess that selectall_arrayref returns a reference to an array. If that is what the documentation says, then you should be able to dereference the array to get a count of its elements:
print "Number of rows selected: ", scalar @{$all};
See also: References quick reference