in reply to How to find out if X is an element in an array?

succinctly:
print grep { $_ eq $value } @list_of_values ? "present\n" : "absent\n";