In article <[EMAIL PROTECTED]>, John W. Krahn wrote:
[...]
> If you just want to print the values of %condorhash you could do this:
>
> print @condorhash{ @condorkeys };
After staring at this strange line for a while I think I finally remembered
that this is a "hash slice"... (was in the book '
[EMAIL PROTECTED] wrote:
>
> I need to order a hash, called condorhash, based on the key value.
> So what I did is:
>
> my @condorhash = keys(%condorhash);
> sort @condorhash;
>
> Now I want to take the order of the array and apply it to the hash
> while keeping the values associated wit
03 4:30 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Reordering Hash
> I need to order a hash, called condorhash, based on the key
> value. So what I did is:
>
> my @condorhash = keys(%condorhash);
> sort @condorhash;
>
> Now I want to take the order o
> I need to order a hash, called condorhash, based on the key
> value. So what I did is:
>
> my @condorhash = keys(%condorhash);
> sort @condorhash;
>
> Now I want to take the order of the array and apply it to the
> hash while keeping the values associated with the key. I know
> there
I need to order a hash, called condorhash, based on the key value. So what I did is:
my @condorhash = keys(%condorhash);
sort @condorhash;
Now I want to take the order of the array and apply it to the hash while keeping the
values associated with the key. I know there is some way to make