Skip to content

Instantly share code, notes, and snippets.

@ytnobody
Created March 7, 2012 08:39
Show Gist options
  • Save ytnobody/1991990 to your computer and use it in GitHub Desktop.
Save ytnobody/1991990 to your computer and use it in GitHub Desktop.
use strict;
my @a = (1,2,3,4,5,6,7,8,9);
my @b = (5,2,9,3);
my @x = grep {
my $_1 = $_;
my $r = grep {$_ eq $_1} @b;
$r == 0;
} @a;
printf "%s\n", join(',', @x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment