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