summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJohn P. Linderman <jpl@research.att.com>2002-05-14 17:08:01 +0000
committerArtur Bergman <sky@nanisky.com>2002-05-14 17:08:01 +0000
commita8ad0e08f7df8b74e6a4447340482563749898fb (patch)
treeeaf8950c892210cf09ad79a9d944646a8fc0c38d /pod
parenta7a6c8b10a9aa6a3798dada669f7b74961355ab6 (diff)
downloadperl-a8ad0e08f7df8b74e6a4447340482563749898fb.tar.gz
Re: lib/sort.t failure [PATCH]
From: "John P. Linderman" <jpl@research.att.com> Message-Id: <200205131505.LAA46150@raptor.research.att.com> p4raw-id: //depot/perl@16594
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod6
1 files changed, 0 insertions, 6 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 131d4777eb..52de7fd324 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4602,12 +4602,6 @@ Examples:
use sort '_mergesort'; # note discouraging _
@new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old;
- # Similar to the previous example, but demand stability as well
- # Because of the way quicksort is "stabilized", this combination
- # is not threadsafe
- use sort qw( _quicksort stable );
- @new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old;
-
If you're using strict, you I<must not> declare $a
and $b as lexicals. They are package globals. That means
if you're in the C<main> package and type