how to find how many items are in a reference?



How can I find how many items are there in a reference?


Let's say we first make:

my $data = $db->selectall_arrayref("SELECT * FROM table");


Now, I can access any data with:

print $$hardware[X][Y];


How can I find the maximum element for X, Y?


--
Tomasz Chmielewski
http://wpkg.org
.