I may have missed something in the discussion as to the ultimate goal,
but what about doing the sorting at the DB level, as this would
seemingly make your code more readable and the DB is likely faster at
this than Perl (as wonderful as it is).
Or was the original intent to sort the keys of
I know this has been covered before, so a faq pointer is ok w/me.
I have this code:
while($db-FetchRow()){
%Data = $db-DataHash(First_Name,Last_Name);
foreach $key (sort(keys %Data)) {
print $key, '=', $Data{$key}, \n;
} # end foreach
print(\n);
}
Just curious. I
On Jul 16, Shishir K. Singh said:
while($db-FetchRow()){
%Data = $db-DataHash(First_Name,Last_Name);
foreach $key (sort(keys %Data)) {
print $key, '=', $Data{$key}, \n;
} # end foreach
print(\n);
}
Just curious. I assume that you are using DBI module. If so, I don't see