develooper Front page | perl.beginners | Postings from April 2002

RE: Sort a hash table

Thread Previous | Thread Next
From:
Nikola Janceski
Date:
April 2, 2002 06:25
Subject:
RE: Sort a hash table
Message ID:
1449413DA482D311B67000508B5A12F50592DFBE@NYEXCHANGE01
uh...


@sortedkeys = sort keys %HASH;

remember that you can't keep the keys of %HASH sorted in %HASH, you need an
array for that.

> -----Original Message-----
> From: Michael Stearman [mailto:qazwsxe7@hotmail.com]
> Sent: Tuesday, April 02, 2002 9:19 AM
> To: beginners@perl.org
> Subject: Sort a hash table
> 
> 
> 
> Hi,
> 
> Does anyone know how to alphabetically sort the keys in a 
> hash table?  
> Thanks,
> Mike.
> 
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> -- 
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About