Last active
April 7, 2021 16:50
-
-
Save hakonhagland/66d3c9d19b103f7cfabaf0f9583b6ffd to your computer and use it in GitHub Desktop.
Grep array of hash refs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my @items; | |
for my $ref (@whole) { | |
my $key = $ref->{name}; | |
push @items, $key if !exists $props{$key}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment