From aca803df632a065e85ab6e5ae135630607e531d3 Mon Sep 17 00:00:00 2001 From: "M. J. T. Guy" Date: Sun, 9 Aug 1998 16:51:48 +0100 Subject: Fix typo, change "an array" to "a hash" Message-Id: p4raw-id: //depot/maint-5.005/perl@1792 --- pod/perlfunc.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pod') diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 4eac093b0e..ec80259d4b 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) { -- cgit v1.2.1