diff options
author | M. J. T. Guy <mjtg@cus.cam.ac.uk> | 1998-08-09 16:51:48 +0100 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 1998-09-20 15:11:33 +0000 |
commit | aca803df632a065e85ab6e5ae135630607e531d3 (patch) | |
tree | 610be3ced39f62748190497781502af4a989ed22 /pod/perlfunc.pod | |
parent | 1ceb69332b93b58ed7281f2f00ff4b63a1c0bae8 (diff) | |
download | perl-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/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 2 |
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) { |