|Syntactic Confectionery Delight|
Re: Extract Block Of Text From Logby LanX (Cardinal)
|on Nov 20, 2018 at 22:19 UTC||Need Help??|
> I must be missing something simple
the flip/flop op is nice if you are reading single lines, but you are swalling whole records, since you changed the $/ separator.
You either need to apply a multiline-regex or you re-open the record-string from IN to read line by line in order to apply the flip/flop. NB: It's possible to open from a scalar-ref \$chunk . °
Though most people would probably nest flip-flops:
°) doh, GrandFather's solution to simply split on "\n" is indeed easier! :)