projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ceb693
)
Fix typo, change "an array" to "a hash"
author
M. J. T. Guy
<mjtg@cus.cam.ac.uk>
Sun, 9 Aug 1998 15:51:48 +0000
(16:51 +0100)
committer
Graham Barr
<gbarr@pobox.com>
Sun, 20 Sep 1998 15:11:33 +0000
(15:11 +0000)
Message-Id: <E0z5Wp2-00071p-00@taurus.cus.cam.ac.uk>
p4raw-id: //depot/maint-5.005/perl@1792
pod/perlfunc.pod
patch
|
blob
|
history
diff --git
a/pod/perlfunc.pod
b/pod/perlfunc.pod
index
4eac093
..
ec80259
100644
(file)
--- 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 a
n 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) {