in reply to Re: how to quickly tell if number is in an array
in thread how to quickly tell if number is in an array
my @array = (1, 2); print "found\n" if grep(3, @array);
which prints found may not be what OP expects
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to quickly tell if number is in an array
by McDarren (Abbot) on Oct 12, 2005 at 02:23 UTC | |
by BUU (Prior) on Oct 12, 2005 at 02:41 UTC | |
by McDarren (Abbot) on Oct 12, 2005 at 02:59 UTC |