in reply to Re: Tedious array sort revisited
in thread Tedious array sort revisited

I know that Perl is supposed to make the routine easy, but I'm specifically supposed to implement a sort subroutine without using any built in perl functions.

Replies are listed 'Best First'.
Re: Re: Re: Tedious array sort revisited
by Fletch (Bishop) on Feb 05, 2003 at 20:08 UTC

    Get thee to your nearest bookstore and get a copy of the wolf book (ISBN ISBN 1565923987), which has an entire chapter on sorting in perl without resorting to sort().

Re: Re: Re: Tedious array sort revisited
by CountZero (Bishop) on Feb 06, 2003 at 22:05 UTC

    If you have to re-invent the wheel, then please do yourself a favour and use some more efficient algorithm, e.g. a Quicksort or a Shell-sort.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law