|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
(dkubb) Re: (2) Outputing data from mySQL query into format for use with HTML::Templateby dkubb (Deacon) |
| on Mar 10, 2001 at 08:11 UTC ( #63435=note: print w/ replies, xml ) | Need Help?? |
|
A great way to do what you want is built right into DBI, there is no need for extra code to build the data structure:
This uses a little known, and undocumented feature in DBI, where selectall_arrayref() can be coerced into returning a reference to an array of hash references. This is done through the use of the \%attr hash reference passed to selectall_arrayref().
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||