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: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: using CTlib callbacks
Date: Oct 2 2001 2:56PM

McCarthy, John writes:
 > When using Michael's "prototype" callback routine, I get this message:
 > Bareword "CS_SUCCEED" not allowed while "strict subs" in use ........
 > Bareword "CS_CLIENTMSG_CB" not allowed while "strict subs" in use ........
 > Bareword "CS_SERVERMSG_CB" not allowed while "strict subs" in use ........
 > 
 > 1.  Is the "use Sybase::CTlib;" module supposed to prevent these bareword
 > errors (via exporter)?

Yes.

 > 2.  Why is CLIENTMSG_CB invoked with 'ct_callback(CS_CLIENTMSG_CB,
 > \&msg_cb)' while
 >            SERVERMSG_CB is invoked with 'ct_callback(CS_SERVERMSG_CB,
 > "srv_cb")'?
 >            (ref to a sub versus double-quoted name of sub)

Just to illustrate that both work.

Michael
-- 
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler@peppler.org - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com