in reply to Re^2: Parsing multiple lines based on a given String
in thread Parsing multiple lines based on a given String

What choroba is showing is called the "flip flop" operator. Have a look at this Flipin good, or a total flop? in the tutorials section.

Other techniques could possibly be applicable, but I don't know enough about what you are doing to make a suggestion. As always, showing some actual code that you are having trouble with is the best way to get quality advice.

  • Comment on Re^3: Parsing multiple lines based on a given String

Replies are listed 'Best First'.
Re^4: Parsing multiple lines based on a given String
by choroba (Cardinal) on Jun 22, 2016 at 20:35 UTC
    At the time I was replying, the parent node contained a code sample, something like
    for $iphostname ($fh) { print $iphostname if /^object-group/ .. /\d{4}:\d{4,6}:\d{3}/; }

    Someone has edited their node without notification. They should check How do I change/delete my post?.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
      It appears that the original content has been restored by grandfather. This is a real mess when the question changes without a clear update posting. I didn't have any idea of where this came from!