http://www.perlmonks.org?node_id=1048812


in reply to Parsing multi-line record with varying data

I had headed in the direction of 'paragraph mode' but what quickly threw me off of there was the empty line within each entry containing a 'deletion-time', which throws off the input separator.

Use $/ = 'rn:'; as the input separator and discard the first read. After that each read will be one complete section.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.