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