Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding element data from referenced array, nested

Status
Not open for further replies.
Oct 22, 2001
215
0
0
US
I am using perl DBI module to get data back from database in array format. The code I have so far looks like this:
$rows = $dbh->selectall_arrayref("show SELECT * FROM table SAMPLE 3");
foreach $h (@$rows) {
foreach $x (@$h) {
printf "%s\n", $x;
}}
After I put a break in debug mode I see my data like this: (the $h)
-----------------------------------------------
0 ARRAY(0x32c40f8)
0 "CREATE SET TABLE (my contents....)
----------------------------------------------
My questions are: 1. How do I know how big is the array and
2. How do I print all the contents that is I want - "CREATE SET TABLE (my contents....)
Please someone shed some idea and Thank you...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top