http://qs321.pair.com?node_id=69557


in reply to Why does this happen?

I'm really surprised nobody has mentioned one of the more idiomatic and concise (though not necessarily efficient) ways to do this, grep:
die "bastard\n" if grep $input eq $_, @matching;
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print