Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$status=~s/P|F|C|D|I/Posted/g; $status=~s/A/Accepted/g; $status=~s/N/New/g; $status=~s/R/Rejected/g; $status=~s/S/Save/g; $status=~s/X/Canceled/g; my @strings = $status; my @sorted_strings = sort @strings; print "<br><font color=red>@sorted_strings</font><br>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting Issue
by davorg (Chancellor) on Jul 26, 2005 at 13:48 UTC | |
|
Re: Sorting Issue
by blazar (Canon) on Jul 26, 2005 at 13:53 UTC | |
by Anonymous Monk on Jul 26, 2005 at 13:57 UTC | |
by polettix (Vicar) on Jul 26, 2005 at 14:20 UTC | |
by Anonymous Monk on Jul 26, 2005 at 16:49 UTC | |
by polettix (Vicar) on Jul 26, 2005 at 16:59 UTC | |
| |
by blazar (Canon) on Jul 26, 2005 at 14:01 UTC | |
by Iron (Scribe) on Jul 26, 2005 at 14:02 UTC | |
by blazar (Canon) on Jul 26, 2005 at 14:18 UTC | |
by Anonymous Monk on Jul 26, 2005 at 14:00 UTC | |
|
Re: Sorting Issue
by trammell (Priest) on Jul 26, 2005 at 18:06 UTC | |
|
Re: Sorting Issue
by polettix (Vicar) on Jul 28, 2005 at 13:35 UTC |