Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# fetch data from sql while (my $row = $res->fetchrow_hashref()) { my %rowdata; # $score is generated by some badass algoritms, and is an integer $rowdata{SCORE} = $score; $rowdata{ID} = $row->{id}; $rowdata{TITLE} = $row->{title}; push (@output, \%rowdata); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting array
by dragonchild (Archbishop) on Jun 14, 2004 at 03:05 UTC | |
|
Re: Sorting array
by thor (Priest) on Jun 14, 2004 at 03:32 UTC | |
by dragonchild (Archbishop) on Jun 14, 2004 at 11:35 UTC | |
|
Re: Sorting array
by Zaxo (Archbishop) on Jun 14, 2004 at 03:08 UTC | |
|
Re: Sorting array
by Anonymous Monk on Jun 14, 2004 at 03:07 UTC |