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: Tim Ehlert <tim at startplus dot de>
Subject: Re: Help using sybperl Sybase::DBLib sql routine
Date: Sep 24 1997 11:58AM

Andreas Schmidt wrote:

> >I'm using the Sybase::DBLib routines.
> >
> >I've called sql with
> >
> >        $db->sql("select field1, field2 from tablename");
> >
> >It returns something like:
> >
> >>>>> ARRAY(0x330f14)
> ...
> >>>>> ARRAY(0x334da0)
> >
> >How do I get this into something useful?
>
> Although I have no experience mit DBLib, since I just use CTLib, your
> result is  exacty what I would expect: Sybase always returns an array of
> result rows - even if there is only one row in the result. Each row is
> represented as an reference to an array, which contains the single column
> values.
>
> And when using in hash-context it returns an array of references to hashes.
>
> Hope that helps.
>
> Andi

 hi andi,

nice to read you here ;-)

    so, that's your chance to grab my new email address even.

        so long!
            tim