Unix news is nothing but opensourse - this site features general information about Linux/Unix/Perl programming language.
Tuesday, April 15, 2008
Perl : Sorting a Hash
This technique offers many variations on the same basic mechanism: you extract the keys, reorder them using the sort function, and then process the entries in the new order. Let's look at some applications. The following code simply uses sort to order the keys alphabetically...