Up Prev Next
From: Andreas Schmidt <andi at team-konzept dot de>
Subject: Re: Help using sybperl Sybase::DBLib sql routine
Date: Sep 23 1997 7:45PM
>I'm using the Sybase::DBLib routines.
>I've called sql with
> $db->sql("select field1, field2 from tablename");
>It returns something like:
>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
And when using in hash-context it returns an array of references to hashes.
Hope that helps.