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 MBAY dot NET>
Subject: dereferencing
Date: Sep 11 1998 2:20PM

pang khong lin writes:
 > $sql = " select something from something";
 > $ta_no = $dbh->ct_sql("$sql");
 > 
 > How do you get the value of $ta_no ? How do you dereference it ? I only 
 > have those notes from www.mbay.net, anyone has other source of 
 > information , examples?
 > 
 > FYI, the data that is retrieve using the SELECT statement is only a 
 > single digit.

$data = $ta_no->[0]->[0];
                 |    |
                 |    ------------- first column
                 ------------------ first row

Again - a good book on perl (maybe Learning Perl) should be on your
shopping list...

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