hmb104 has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to match 2 strings in the same line. If BOTH exists then push that line into my array.
if($line =~ m/$logsIncDate/ && m/SW_MATM-4-MACFLAP_NOTIF/){ push(@eigrp, "$line\n");
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Match 2 strings in same line
by davido (Cardinal) on Nov 25, 2013 at 16:57 UTC | |
by hmb104 (Sexton) on Nov 25, 2013 at 17:02 UTC | |
by kennethk (Abbot) on Nov 25, 2013 at 17:07 UTC | |
by hmb104 (Sexton) on Nov 25, 2013 at 17:21 UTC | |
by kennethk (Abbot) on Nov 25, 2013 at 17:29 UTC | |
| |
by Tux (Canon) on Nov 25, 2013 at 17:30 UTC | |
by davido (Cardinal) on Nov 25, 2013 at 17:18 UTC | |
|
Re: Match 2 strings in same line
by Eily (Monsignor) on Nov 25, 2013 at 17:06 UTC | |
by hmb104 (Sexton) on Nov 25, 2013 at 17:23 UTC |