Help for this page

Select Code to Download


  1. or download this
        @matching{@names} = shuffle(@names); # Match 'em up
        
    ...
        foreach (@names) {
            next GENERATE if $_ eq $matching{$_};
        }
    
  2. or download this
        %matching = ( map { $_, $_ } @names )[ 1..@names*2-1, 0 ];
    
  3. or download this
    push @digest, md5_hex($_, '=>', $matching{$_});
    
  4. or download this
    push @digest, md5_hex(join '<=>', sort $_, $matching{$_});