in reply to Order a hash?

foreach my $key (sort keys %titles) { # blah }

Or, reversed:
foreach my $key (reverse sort keys %titles) { #blah }

Also, I believe there is a question in the Q&A section on this. Look there for more info.

-- ar0n

Replies are listed 'Best First'.
RE: (ar0n; use sort)RE: Order a hash?
by Russ (Deacon) on Jul 21, 2000 at 02:44 UTC