- or download this
@keys = qw(one two five);
unshift @keys,'four';
...
} else {
print "nope\n";
}
- or download this
four one two five
yep
one two five two
nope
- or download this
if ( grep{ exists( $hash{$_} ) } @keys ) {
print "yep\n";
} else {
print "nope\n";
}