my @array = (1, 2); print "found\n" if grep(3, @array);
which prints found may not be what OP expects
In reply to Re^2: how to quickly tell if number is in an array
by GrandFather
in thread how to quickly tell if number is in an array
by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |