more useful options | |
PerlMonks |
Re: question about printing from databaseby friedo (Prior) |
on Feb 24, 2005 at 19:29 UTC ( [id://434208]=note: print w/replies, xml ) | Need Help?? |
With Class::DBI, you can fetch an entire table using the retrieve_all method. In scalar context, it will give you an iterator which basically does what the DBI "fetchrow_*" methods do. For example:
Update: Added newline to print.
In Section
Seekers of Perl Wisdom
|
|