Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Golf challenge: Line-based parsing

by hbm (Hermit)
on Jun 13, 2013 at 01:45 UTC ( [id://1038649]=note: print w/replies, xml ) Need Help??


in reply to Golf challenge: Line-based parsing

You might read the data in as records, rather than one line to split.

{ local $/="Index: "; dump { map { /(.+)/ => [/^interesting line (.+)/mg ] } (<DATA>)[1,-1 +] } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-19 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found