Re: Reordering Hash

2003-07-23 Thread Kevin Pfeiffer
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 '

Re: Reordering Hash

2003-07-23 Thread John W. Krahn
[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

RE: Reordering Hash

2003-07-23 Thread Marcos . Rebelo
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

RE: Reordering Hash

2003-07-23 Thread Dan Muey
> 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

Reordering Hash

2003-07-23 Thread bseel
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