Well, you could do it via a regex...
if($item3 =~ /^(\Q$item1\E|\Q$item2\E)$/)
<update>Tnx Hue-Bond for the \Q heads-up...</update>
In reply to Re: testing more than one item for equality
by Melly
in thread testing more than one item for equality
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |