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: FW: sybperl 'ct_sql'
Date: Jan 16 2001 9:06PM

Huang_B writes:
 > 

 > > 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
-- 
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com