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: "Dave Aiello" <dave_aiello at ctdata dot com>
Subject: Fwd: Writing more robust message and error handlers
Date: Nov 10 2001 12:33AM

In my previous message that began:
 
> I am in the process of trying to standardize 20 or 30 Perl scripts that use 
> Sybase::DBlib.  These scripts were written by a team of programmers who were 
> under deadline pressure, so there weren't many coding standards.  Many of
> these.... 

I wrote:

> If the error handler is called and an INT_CANCEL is issued (as in the 
example), 
> the Sybase Open Client DB-Library documentation says that the DB Library 
> routine will return with failure.  Does this mean that I still can execute 
the 
> alternative condition, for example the print statement in the following line 
of 
> Perl code: (?)
> 
> $dbh->dbcmd("foo") || print "Foo didn't work!";

I just realized that the line of code above doesn't make sense.  Of course it 
should be a dbcmd, dbsqlexec sequence.  Sorry.

Dave Aiello
CTDATA