My guess:
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:
TIMTOWTDI :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
°) doh, GrandFather's solution to simply split on "\n" is indeed easier! :)
In reply to Re: Extract Block Of Text From Log
by LanX
in thread Extract Block Of Text From Log
by ImJustAFriend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |