in reply to Howto Compare 2 lists
List::Util
List::MoreUtils
#!/usr/bin/perl -w use strict; my @a = (1,2,3); my @b = (1,2,3,4,5); my %a_lookup = map {$_,undef} @a; my @c = grep {! exists $a_lookup{$_}} @b; print join(',', @c) . "\n"; # __OUTPUT__ # 4,5 [download]