untested: if ( reduce { $a||$b } @myhash{@allpreds} ) {...}
Cheers Rolf
UPDATED: tested and works!
If you dont like the hashslice you can also use map {$myhash{$_}} @allpreds instead.
In reply to Re: How to Do Multiple OR in For Loops
by LanX
in thread How to Do Multiple OR in For Loops
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |