From: John P. Linderman Date: Tue, 14 May 2002 17:08:01 +0000 (+0000) Subject: Re: lib/sort.t failure [PATCH] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a8ad0e08f7df8b74e6a4447340482563749898fb;p=p5sagit%2Fp5-mst-13.2.git Re: lib/sort.t failure [PATCH] From: "John P. Linderman" Message-Id: <200205131505.LAA46150@raptor.research.att.com> p4raw-id: //depot/perl@16594 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 131d477..52de7fd 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 declare $a and $b as lexicals. They are package globals. That means if you're in the C
package and type