And you can even capture the keys for which true is returnedif (grep {$opt{$_}} qw(a b c)}) {
if (my @keys = grep {$opt{$_}} qw(a b c)}) { print "@keys match\n";
In reply to Re^3: nonempty false list
by wind
in thread nonempty false list
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |