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: "Louis Proyect" <lnp3 at columbia dot edu>
Subject: RE: Column headings question
Date: Oct 7 2009 6:24PM

> Something like
> 
> @res = $dbh->ct_sql($cmd, undef, 1);
> foreach my $row (@res) {
>     foreach my $col (keys(%$row)) {
> 	print "$col: $row->{$col}\n";
>     }
> }

This worked great, but for some reason the columns/data did not come out
in the order they originated in the select statement in the stored
procedure. All I need is a fix on that.