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