Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
something like...my @array = ('POST100','POST5','POST10','POST1') #etc my %array = ('POST100' => 1, 'POST5' => 1, ...) #etc
thanks, Michaelforeach my $postNum (sort @array) { #process post #X }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl sorting
by ColonelPanic (Friar) on May 06, 2004 at 21:02 UTC | |
by Anonymous Monk on May 06, 2004 at 21:11 UTC | |
|
Re: perl sorting
by Ovid (Cardinal) on May 06, 2004 at 21:03 UTC | |
|
Re: perl sorting (a bit more stupid -- er, efficient :)
by Ovid (Cardinal) on May 06, 2004 at 21:22 UTC | |
|
Re: perl sorting
by pizza_milkshake (Monk) on May 06, 2004 at 20:58 UTC | |
|
Re: perl sorting (natural)
by tye (Sage) on May 06, 2004 at 22:13 UTC | |
|
Re: perl sorting
by QM (Parson) on May 06, 2004 at 23:43 UTC | |
|
Re: perl sorting
by ysth (Canon) on May 07, 2004 at 00:41 UTC |