Help for this page

Select Code to Download


  1. or download this
    sub shuffle (@) {
      my @a=\(@_);
    ...
        (${$a[$n]}, $a[$n] = $a[$i])[0];
      } @_;
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    cmpthese -60, { map { $_ => "$_ 1..1000" } qw/naive listutil/ };
    
    __END__
    
  3. or download this
    C:\temp>perl lus.pl
              Rate    naive listutil
    naive    588/s       --     -14%
    listutil 684/s      16%       --