in reply to Re: PERL CGI Newbie Question
in thread PERL CGI Newbie Question

Just as a side-note, to make this a little easier (yes, I'm lazy), you can have Sybase return a hash keyed on column name for you - using my %hash = $dbh -> dbnextrow(1);

This means that with Ovid's code above as a basis you can do something like

my @results; while (my %data = $dbh -> dbnextrow(1)) { push @results => \%data; }

I should point out that I haven't tested that (at least specifically here), though. Of course, if your're not using the DB column names as your hash keys, it'll all go pear-shaped ..

Just out of interest, as I said.
-- Foxcub

Replies are listed 'Best First'.
Re: Re: Re: PERL CGI Newbie Question
by cosmicsoup (Beadle) on Dec 13, 2002 at 22:05 UTC
    Thank you . This is exactly what I wanted to learn.