Note though that grep loops over the entire array everytime, so for large arrays, simon.proctor's function would be better.print grep { $_ eq $var } qw( 1 2 3 4 5 ) ? "Found.\n" : "Not found.\n +";
In reply to (ar0n) Re (2): Is there an InString-like function?
by ar0n
in thread Is there an InString-like function?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |