Sybase SSL



Hi all. I have just find this group and do not know if proper for my
question.
Please, forgive me if it is not.

I have a Sybase Server 12, and a perl CGI app, and I need to connect
with server in SSL mode.

I have this code for testing:

....

$j_query = "select lst_nme, status from cp_master.$DBO.jam_user
where user_id = '$user_id'";
$X = new Sybase::CTlib $user_id, $user_pass , $SYSTEM;
Sybase::CTlib::ct_con_props($X, CS_SET, CS_PROP_SSL_CA,
$trusted,CS_NULLTERM);


$X = Sybase::CTlib->ct_connect($user_id, $user_pass, $SYSTEM);
#select(STDERR); $| = 1;
if ($X) {
$X->ct_execute($j_query);
....


my questions are:

1 - Is it correct $X creation ?

2 - This code work in a module and fails in another, how can I debug
this ?
( when fails, error is about $X , like it was not created, and have no
reference
to object).

Thanks in advance.
Eduardo Perez.

.