DBI question
DBI question
(OP)
I'm using DBI to access an Informix database on SUN OS 5.7 I'm doing a search to find records according to some criterion. My question is if no match is found in the database does DBI return an error? I'm using DBI::errstr to catch errors. How can I print out these errors? Thanks in advance for any help offered.
RE: DBI question
To print out DBI errors, just || die "$DBI::errstr";
Sincerely,
Tom Anderson
CEO, Order amid Chaos, Inc.
http://www.oac-design.com
RE: DBI question
RE: DBI question
I would also highly recommend "Programming the Perl DBI" by Descartes & Bunce - towards the back they have specific sections for each of the different databases - Informix *IS* in there - not that you need it for these questions.
HTH.
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com