develooper Front page | perl.perl5.porters | Postings from September 2000

Re: the door is closed.

Thread Previous | Thread Next
Ben Tilly
September 1, 2000 17:23
Re: the door is closed.
Message ID:
>Theory: only documentation fixes can any more get in.

Well this is a documentation fix, based on benchmark results at

It seems that the test is a performance loss, and at a guess that
Tye McQueen made (which I suspect is correct), the only reason
for it is that if you swap an element with itself with an xor,
bad things happen.


--- perlfaq4.pod.bak    Fri Sep  1 09:03:28 2000
+++ perlfaq4.pod        Fri Sep  1 09:04:11 2000
@@ -1189,7 +1189,6 @@
         my $i;
         for ($i = @$array; --$i; ) {
             my $j = int rand ($i+1);
-            next if $i == $j;
             @$array[$i,$j] = @$array[$j,$i];

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About