Re: searching for a few things

2001-09-18 Thread Brett W. McCoy
On Tue, 18 Sep 2001, Tyler Longren wrote: > Can I do something like this: > my @array; > while () { > chomp; > push (@array, $_) > if m/AAA/i; > print "Reading logs...\r"; > } > > but have it search for more than one string (AAA being that one string)? > I'd like to search

searching for a few things

2001-09-18 Thread Tyler Longren
Hello, Can I do something like this: my @array; while () { chomp; push (@array, $_) if m/AAA/i; print "Reading logs...\r"; } but have it search for more than one string (AAA being that one string)? I'd like to search for AAA, BBB, and CCC and have all results be put into