PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Sabherwal, Balvinder (MBS)" <Balvinder dot Sabherwal at mortgagefamily dot com>
Subject: RE: Handling Errors
Date: Feb 8 2002 1:54PM

You are right, I changed the line from if($dbhndl eq "CS_FAIL") to
if($dbhndl eq undef) and it worked. Now I want to print the server / client
error message which I am not able to get.

Thanks for the help David!!

Bal.

-----Original Message-----
From: David LANDGREN [mailto:dlandgre@bpinet.com]
Sent: Friday, February 08, 2002 8:45 AM
To: SybPerl Discussion List
Subject: Re: Handling Errors


|if($dbhndl eq "CS_FAIL")

I would suspect you really want to be saying

     if( !defined( $dbhndl )) {
          # ... then die
     }

David