How to find out if a certain value is in a list?



Hi there,
what would be the shortest (or best...) way to find out if a certain value
is in the list like in the code here:

my @resultarray = &somefunc("case"); # returns a list (1,3,5,7,9) in this
case
# now I need to know whether 7 is in the @resultarray or not
if (...) {
# 7 was in the @resultarray
} else {
# 7 was not in the @resultarray
}


Greetings,
TN


.