![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Re: DBI specification changeby aufrank (Pilgrim) |
on Jul 18, 2002 at 16:06 UTC ( #182879=note: print w/replies, xml ) | Need Help?? |
this actually already exists and is very useful. the method you're looking for is fetchall_arrayref( {} )
from the docs:
"When passed a hash reference, fetchall_arrayref uses /fetchrow_hashref to fetch each row as a hash reference. If the parameter hash is empty then fetchrow_hashref is simply called in a tight loop and the keys in the hashes have whatever name lettercase is returned by default from fetchrow_hashref." going through each row then looks something like:
there's a good chance my use of references is off in the 3rd line, but at least I tried :)
hope that's what you were looking for!
In Section
Meditations
|
|