On Tue, 18 Sep 2001, Tyler Longren wrote:
> Can I do something like this:
> my @array;
> while (<LOGFILE>) {
> 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
> @array.
push(@array, $_) if /AAA|BBB|CCC/i;
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
If the grass is greener on other side of fence, consider what may be
fertilizing it.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]