Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Think about Loose Coupling
 
PerlMonks  

Re: how to check condition and then pattern match

by aitap (Chaplain)
on Aug 23, 2012 at 10:33 UTC ( #989267=note: print w/ replies, xml ) Need Help??


in reply to how to check condition and then pattern match

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.


Comment on Re: how to check condition and then pattern match
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2013-05-20 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (402 votes), past polls