Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: regex multiple lines

by choroba (Chancellor)
on Jan 30, 2012 at 18:54 UTC ( #950824=note: print w/replies, xml ) Need Help??

in reply to regex multiple lines

Process the output line by line. Keep a hash of all the information read so far. On a MAC line, print the info if any, and clear the hash. On other lines, add info to the hash. After the loop, do not forget to print the last info.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2016-10-25 10:07 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.