Re: [GENERAL] Suppressing Error messages.

2005-08-10 Thread Ragnar Hafstaư
On Fri, 2005-08-05 at 07:42 -0700, Basith Salman wrote: > > Hi All, > > I was wondering if there is way to suppress the error messages on the stdout > from a perl dbi execute command, basically if I do a > sth->execute() on a command and say the row cannot be updated then > I get a err msg to

Re: [GENERAL] Suppressing Error messages.

2005-08-09 Thread SCassidy
Hi, To get rid of the automatic output, turn PrintError off. For example: $dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=${dbserver};", $dbuser, "",{PrintError => 0}) or errexit( "Unable to connect to dbname $dbname, err: $DBI::errstr"); See the "perldoc DBI" documentation for full informati