Baz has asked for the wisdom of the Perl Monks concerning the following question:

I have a list of numbers -

and a varible $x which stores an arbitary value
I want an if loop which is true if $x matches a value in my list. In other words, if $x is 10 then the if loop is executed, if its 5 then it is not.
whats the simplest way of doing this?