in reply to Perl/SQL Query

Go read the DBI documentation. Among many other useful things, it will tell you that execute() returns true if it succeeds, and "undef" if an error occurs.

-- am