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: Michael Peppler <mpeppler at MBAY dot NET>
Subject: SYBPERL 2.09_05 / Solaris 2.5.1 Question
Date: Sep 18 1998 2:24PM

HUBERT WENDKER +49-0211-3882-228 writes:
 > 
 > Is the "$doAssoc"-feature in ct_sql supposed to work? I can't get it running?
 > With arrays it works
 > fine but hashes seem not to work.

It should work like this:

$data = $dbh->ct_sql("select * from sysusers", undef, CS_TRUE);
foreach (@$data) {
    print "$_->{uid}\n";
}

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com