Just another Perl shrine | |
PerlMonks |
Re: reordering a stack with little effortby NiJo (Friar) |
on Mar 12, 2005 at 19:49 UTC ( [id://438983]=note: print w/replies, xml ) | Need Help?? |
The question number as integer comes for free. Using a float as QUESTION_NUM is a good idea for less than approx. 1000 questions. Retrieve the db records in a sorted array via DBI::fetchall_arrayref. foreach my $i (@questions){...} Searching the array is affordable for converting from float to integer.
In Section
Seekers of Perl Wisdom
|
|