Many thanks to Michael and the others who responded to this query!
Needless to say: problem solved.
Thanks again,
Birgit Kellner
--On Mittwoch, 06. Februar 2002 17:59 + Michael Lamertz
<[EMAIL PROTECTED]> wrote:
>
> H, did I make sense?
>
> --
> If we fail, we wi
On Wed, Feb 06, 2002 at 05:35:44PM +0100, birgit kellner wrote:
> my %hash = (
> 'keyone' => ['firstvalueone', 'firstvaluetwo],
> 'secondkey' => ['anothervalueone', 'valuetwoforsecondkey'],
> 'keythree' => ['thirdvalueone', 'thirdvaluetwo']
>
> );
>
> Can I sort the hash
On Wed, 6 Feb 2002, birgit kellner wrote:
> my %hash = (
> 'keyone' => ['firstvalueone', 'firstvaluetwo],
> 'secondkey' => ['anothervalueone', 'valuetwoforsecondkey'],
> 'keythree' => ['thirdvalueone', 'thirdvaluetwo']
>
> );
>
> Can I sort the hash on the second element of the
oops that should have been
@sorted_keys = sort { $hash{$a}[1] cmp $hash{$b}[1] } keys %hash;
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 11:48 AM
To: 'birgit kellner'; [EMAIL PROTECTED]
Subject: RE: sort on anony
yes:
@sorted_keys = sort { $hash{$a}[2] cmp $hash{$b}[2] } keys %hash;
-Original Message-
From: birgit kellner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject: sort on anonymous array elements as hash values
my %hash = (
'key