From: M. J. T. Guy Date: Sun, 9 Aug 1998 15:51:48 +0000 (+0100) Subject: Fix typo, change "an array" to "a hash" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aca803df632a065e85ab6e5ae135630607e531d3;p=p5sagit%2Fp5-mst-13.2.git Fix typo, change "an array" to "a hash" Message-Id: p4raw-id: //depot/maint-5.005/perl@1792 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 4eac093..ec80259 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1885,7 +1885,7 @@ or how about sorted by key: print $key, '=', $ENV{$key}, "\n"; } -To sort an array by value, you'll need to use a C function. +To sort a hash by value, you'll need to use a C function. Here's a descending numeric sort of a hash by its values: foreach $key (sort { $hash{$b} <=> $hash{$a} } keys %hash) {