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: Gerd Knops <gerti at is dot com>
Subject: Re: Returned arrays
Date: Feb 5 1996 5:49PM

mpeppler@itf.CH (Michael Peppler) wrote:
> From: Gerd Knops 
> > More specifically, code like
> >
> > @tmp=$db->sql("select * from a"); print "$tmp[0]\n";
> >
> > suddenly prints
> >
> > ARRAY(0xWhatever)
> >
> > Does that ring a bell anywhere?
>
> The behaviour changed in version 2b3. sql() returns an array of references
> to arrays:

Both Shankar Kris and Michael Peppler answered, and my problem was solved.
Thank You!

BUT: Michael (probably inspired/bribed by Gisle) didn't follow the golden
rule number one in programming: If you change the functionality of a
method/subroutine, CHANGE THE NAME!!!

I have more than 100.000 lines of production code, that use the 'old ways'
of doing things. Sigh...

Gerd