Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Parsing multi-line record with varying data

by BrowserUk (Pope)
on Aug 09, 2013 at 17:56 UTC ( #1048812=note: print w/ replies, xml ) Need Help??

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.

Comment on Re: Parsing multi-line record with varying data
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2016-02-12 01:33 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (386 votes), past polls