in reply to Re: Sorting issues
in thread Sorting issues

You forgot something: You need to a

chomp @database;
before the sort. And as merlyn points out this is a good application of the Schwartzian Transform.


Peter L. BergholdSchooner Technology Consulting, Inc.
Peter@Berghold.Netwww.berghold.net

Replies are listed 'Best First'.
Re: Re: Re: Sorting issues
by larryk (Friar) on May 28, 2001 at 14:11 UTC

    i purposely left out the chomp because it works without.

    ++ for you if you can tell me when the \n will screw up the sort.

    The fix to dump the newlines is: sub g($){(split/\||\n/,shift)[-1]};

    "Argument is futile - you will be ignorralated!"