There are a couple of kludgy ways to do this, but any time you find
yourself wanting to do this you have to stop and make sure that what you
are attempting is really what you want to have happen.  99% of the time
what you really want is an array.



-----Original Message-----
From: Causevic, Dzenan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 22, 2005 2:19 PM
To: beginners@perl.org
Subject: HASH keys in exact order


I am trying to print HASH keys in exact order as they are defined, but
"keys %HASH" returns them in a random order, "sort" is not going to work
either because keys are strings that are not defined in the exact
alphabetical order. Is there a way to get %HASH keys in the original
order as they are defined?


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to