@result = grep(/$testItem/, @items); if(@result) { print "WE ARE GOLDEN!"; } else { print "WE ARE ALL ALONE"; }
In reply to RE: Can you scan an @array for a fragment of data?
by little_mistress
in thread Can you scan an @array for a fragment of data?
by ChuckularOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |