sybperl-l Archive
Up Prev Next
From: Shankar Kris <kris at japan dot sbi dot com>
Subject: Re: Returned arrays
Date: Feb 2 1996 12:57AM
On Thu, 1 Feb 1996, Gerd Knops wrote:
> More specifically, code like
>
> @tmp=$db->sql("select * from a");
> print "$tmp[0]\n";
>
> suddenly prints
>
> ARRAY(0xWhatever)
>
> Does that ring a bell anywhere?
If you are getting ARRAY(0xwhatever) that means you are *now* using Perl5.
Are you using $db->sql or $db->r_sql ? In Perl5/Sybperl2.0
sub sql { } would return the result array.
sub r_sql { } would returns an array of references to row data.
For more details please look at DBlib.pm.
Hope this helps.
Thanks
Krish/Tokyo/Japan
|