Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: FW: sybperl 'ct_sql'
Date: Jan 16 2001 9:06PM
> > To whom it may concern:
> > I write perl script to access sybase. The problem recently caught me
> > is that @@rowcount,@@sqlstatus
> > sybase system variables are not recognized by the perl when I use 'ct_sql'
> > to send sal commands to sybase.
@@rowcount and other Sybase global variables are definitely recognized
and visible when using the ct_sql() subroutine.
You may be getting problems because perl interprets the @ sign as an
array. In that case you need to escape the @ sign, like so:
$dbh->ct_sql(".... \@\@rowcount ... ");
Michael Peppler - Data Migrations Inc. - email@example.com
http://www.mbay.net/~mpeppler - firstname.lastname@example.org
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: email@example.com