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)$/)

<update>Tnx Hue-Bond for the \Q heads-up...</update>

Tom Melly, tom@tomandlu.co.uk