I am trying to make a dynamic fucntion to display results from a DBI call.
I know the # of rows, but I do not know the number of fields or what the field names are
so I need to somehow iterate through my record set.
Any advice on how ti display all the data?
Thanks
I know the # of rows, but I do not know the number of fields or what the field names are
so I need to somehow iterate through my record set.
Code:
while( my $rows = $record_set->fetchrow_hashref() ) {
print $rows->{'unknowns'}\n";
}
Any advice on how ti display all the data?
Thanks