roboticus has asked for the wisdom of the Perl Monks concerning the following question:
I joined back in March, but this is my first question to SoPW. A fellow monk suggested that I read Resorting to Sorting to get a handle on some alternate sorting idioms. While doing so, I'm having a spot of trouble with Exercise 2 in the Orcish Manuever section.
My code compiles cleanly, and it runs, but it's giving me incorrect results. The results I want are:
I don't want to spoil the exercise for those who haven't worked it yet, so I've spoilerized it...Unsorted List:beta, apple, gamma globulin, alpha, zeta, gesorenplatz!! +, gamma, delta, foolish mortal, Sorted List:, beta, zeta, alpha, apple, delta, gamma, foolish mortal, +gamma globulin, gesorenplatz!!
UPDATE: I forgot to wrap the code in code tags!
UPDATE: I linked "Orcish Manuever" since planetscape told me how.
TIA, roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting problem with Orcish Manuever
by japhy (Canon) on May 22, 2006 at 12:26 UTC | |
by bart (Canon) on May 22, 2006 at 12:39 UTC | |
by roboticus (Chancellor) on May 22, 2006 at 16:40 UTC | |
|
Re: Sorting problem with Orcish Manuever
by bart (Canon) on May 22, 2006 at 12:35 UTC | |
by roboticus (Chancellor) on May 22, 2006 at 16:31 UTC | |
by planetscape (Chancellor) on May 23, 2006 at 07:32 UTC | |
by roboticus (Chancellor) on May 23, 2006 at 11:32 UTC | |
|
Re: Sorting problem with Orcish Manuever
by liverpole (Monsignor) on May 22, 2006 at 12:27 UTC | |
|
SUMMARY: Sorting problem with Orcish Manuever
by roboticus (Chancellor) on May 23, 2006 at 11:49 UTC |