|
|
sybperl-l Archive
Up Prev Next
From: "McCarthy, John" <JMcCarthy at citistreetonline dot com>
Subject: using CTlib callbacks
Date: Oct 1 2001 9:36PM
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)?
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)
I Using perl 5.6.0 and version 1.30 of Sybase::CTlib.pm on HP-UX 11.0. The
non-msg handler part of CTlib works fine.
TIA,
John
|