|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: how to check condition and then pattern matchby aitap (Chaplain) |
| on Aug 23, 2012 at 10:33 UTC ( #989267=note: print w/ replies, xml ) | Need Help?? |
|
Extend the second regexp to match only lines where "Ethernet" string is present. Something like this: ^([\S]+) ... Ethernet. See perlretut for more information.
Sorry if my advice was wrong.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||