Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Getting a list of columns from a MySQL Tableby Aristotle (Chancellor) |
on Jul 23, 2002 at 00:12 UTC ( [id://184295]=note: print w/replies, xml ) | Need Help?? |
Did you check $sth->errstr (or generally $DBI::errstr)? There's nothing in your example that checks for errors; do you use RaiseError? (I think you needn't call finish() either there, btw, since $sth goes out of scope at the end of the loop anyway, but that's beside the question of course.)Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|