|
|
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
|