in reply to Re: Is there an InString-like function?
in thread Is there an InString-like function?
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 +";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (ar0n) Re (2): Is there an InString-like function?
by tigervamp (Friar) on Jul 24, 2001 at 02:23 UTC |