print "found\n" if grep(/^$number\$/, @array); [download]
In reply to Re^3: how to quickly tell if number is in an array by McDarren in thread how to quickly tell if number is in an array by redss