summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorM. J. T. Guy <mjtg@cus.cam.ac.uk>1998-08-09 16:51:48 +0100
committerGraham Barr <gbarr@pobox.com>1998-09-20 15:11:33 +0000
commitaca803df632a065e85ab6e5ae135630607e531d3 (patch)
tree610be3ced39f62748190497781502af4a989ed22 /pod
parent1ceb69332b93b58ed7281f2f00ff4b63a1c0bae8 (diff)
downloadperl-aca803df632a065e85ab6e5ae135630607e531d3.tar.gz
Fix typo, change "an array" to "a hash"
Message-Id: <E0z5Wp2-00071p-00@taurus.cus.cam.ac.uk> p4raw-id: //depot/maint-5.005/perl@1792
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod2
1 files changed, 1 insertions, 1 deletions
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<sort()> function.
+To sort a hash by value, you'll need to use a C<sort()> function.
Here's a descending numeric sort of a hash by its values:
foreach $key (sort { $hash{$b} <=> $hash{$a} } keys %hash) {