At 11:40 PM -0500 2/11/04, Joe Gottman wrote:
This is unrelated to the problem you mentioned, but there is another
annoying problem with sort as it is currently defined. If you have an
@array and you want to replace it with the sorted version, you have to type
@array = sort @array;
That wou
On Thu, 12 Feb 2004 15.40, Joe Gottman wrote:
>This is unrelated to the problem you mentioned, but there is another
> annoying problem with sort as it is currently defined. If you have an
> @array and you want to replace it with the sorted version, you have to type
> @array = sort @array;
Joe Gottman wrote in perl.perl6.language :
>This is unrelated to the problem you mentioned, but there is another
> annoying problem with sort as it is currently defined. If you have an
> @array and you want to replace it with the sorted version, you have to type
> @array = sort @array;
>
- Original Message -
From: "Luke Palmer" <[EMAIL PROTECTED]>
To: "Language List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 10:11 PM
Subject: [perl] The Sort Problem
> I've been thinking about this problem which comes up in my code a lot:
>
> @sorted = sort { $^a.foo('ba