RE: sort order of hash keys

2002-02-26 Thread Wagner-David
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 03:37 To: [EMAIL PROTECTED] Subject: Re: sort order of hash keys yeah, i new this was tricky. my hash keys / values have uneven names so i cant use a sort routine directly. thats why i would like to get the key / valu

RE: sort order of hash keys

2002-02-26 Thread Jeff 'japhy' Pinyan
On Feb 26, Richard Smith said: >Try the fields module. This sounds like an ideal place to use a pseudo-hash EWWW. Pseudo-hashes were a blight on Perl. They slowed things down all over the place. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia broth

RE: sort order of hash keys

2002-02-26 Thread Richard Smith
Try the fields module. This sounds like an ideal place to use a pseudo-hash Thanx, Smiddy .. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sort order of hash keys

2002-02-26 Thread Jeff 'japhy' Pinyan
On Feb 26, Martin A. Hansen said: >i would like to know if theres a smart way to unwind a hashtable so that >the key / value pairs comes out in the same order as they are in the table. What "table"? If you'd like a hash to stay in the order you CREATED it in, use the Tie::IxHash module. -- Je

RE: sort order of hash keys

2002-02-26 Thread John Edwards
This maybe... Tie::LLHash.pm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 11:37 To: [EMAIL PROTECTED] Subject: Re: sort order of hash keys yeah, i new this was tricky. my hash keys / values have uneven names so i cant use a sort routine

Re: sort order of hash keys

2002-02-26 Thread Martin A. Hansen
or <=>, but I don't know it. There is also a module available that > lets you store and retrieve hashes in a fixed order. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 26 February 2002 09:16 > To: [EMAIL PROTECTED] > Subject: so

RE: sort order of hash keys

2002-02-26 Thread John Edwards
ng this using the comparison operator <=>, but I don't know it. There is also a module available that lets you store and retrieve hashes in a fixed order. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 09:16 To: [EMAIL PROTECTED] Su

sort order of hash keys

2002-02-26 Thread Martin A. Hansen
hi i would like to know if theres a smart way to unwind a hashtable so that the key / value pairs comes out in the same order as they are in the table. :o) martin -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]