Sorted Hash
- From: "palexvs@xxxxxxxxx" <palexvs@xxxxxxxxx>
- Date: Thu, 29 Nov 2007 15:33:08 -0800 (PST)
I filled hash and then printed it (sorted by key):
my %hs = (
key10 => 5,
key5 => b,
aey9 => 7,
)
foreach my $k (sort keys %hs) { print "$k $hs{$k}\n"; }
key - string ([0-9A-F]{72}), 50K records.
How do it more effective?
.
- Follow-Ups:
- Re: Sorted Hash
- From: Salvador Fandino
- Re: Sorted Hash
- From: xhoster
- Re: Sorted Hash
- From: Jürgen Exner
- Re: Sorted Hash
- From: Jürgen Exner
- Re: Sorted Hash
- From: A. Sinan Unur
- Re: Sorted Hash
- From: Ben Morrow
- Re: Sorted Hash
- Prev by Date: Re: Errors using installing perl modules
- Next by Date: Re: How to persist and query a hash lookup in memory with Perl ?
- Previous by thread: FAQ 4.29 How can I count the number of occurrences of a substring within a string?
- Next by thread: Re: Sorted Hash
- Index(es):