![]() |
|
No such thing as a small change | |
PerlMonks |
Re^3: basic dbi questionby wallisds (Beadle) |
on Dec 01, 2010 at 21:07 UTC ( #874764=note: print w/replies, xml ) | Need Help?? |
Are you looking for a way to shorten the method to get your result out of the query? Like a way to replace execute, prepare, fetch?
For multiple rows I like the array ref methods. Here is one right from CPAN (http://search.cpan.org/~timb/DBI-1.615/DBI.pm#selectall_arrayref)
To then access your result you can use this loop
There is a lot of information on DBI in CPAN.
In Section
Seekers of Perl Wisdom
|
|