Advertisement
hakonhagland

grep array-hash

Apr 3rd, 2021
1,315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.17 KB | None | 0 0
  1. my @matching_items = grep { exists $props{$_->{name}} } @whole;
  2. my @not_matching_items = grep { !exists $props{$_->{name}} } @whole;
  3. print Dumper(\@not_matching_items);
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement