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

Apologies in advance for this senior moment. I am looking to compare a variable, which contains a number to a list of numbers, such as 1,2,5,6,9,10,41-56 If the value is any of those numbers then don’t perform my “if” routine
next If ($x = [number above] );