Is it possible to use foreach in the conditional part of a elsif statement? For example something like
If this sort of thing is not possible I can work around it by several elsif statements so this is more out of interest than anything else.elsif (foreach (@pmis) {if ($_ eq $outdate{$key1} && $lec eq $outdate{ +$key1})}){ ........ }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |