Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Golf challenge: Line-based parsing

by hbm (Hermit)
on Jun 13, 2013 at 01:45 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-09-22 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?