in reply to Foreach loop

How can I check if a value "X" is in the array?

use List::MoreUtils qw{any}; my @array = (1, 2, 3, 4, 5, 6, 7, "Silvester", 8); print "I tawt I taw a puddy tat!\n" if any {"Silvester"} @array;