Advertisement
harmth

Untitled

Dec 2nd, 2018
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.28 KB | None | 0 0
  1. #!/usr/bin/perl
  2. chomp(my @lines = <ARGV>);
  3. for (my $i = 0; $i < @lines; $i++) {
  4.     for (my $j = $i+1; $j < @lines; $j++)  {
  5.         print (($lines[$i] & ~($lines[$i] ^ $lines[$j] =~ tr/\0/\xff/rc)) =~ tr/\0//rd . "\n") if ($lines[$i] ^ $lines[$j]) =~ tr/\0//c  == 1;
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement