Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to improve regex for parsing equals delimited data

by jwkrahn (Monsignor)
on May 11, 2012 at 18:03 UTC ( #970073=note: print w/replies, xml ) Need Help??


in reply to How to improve regex for parsing equals delimited data

Another way to do it:

while ( <DATA> ) { $_ = reverse; my @fld; unshift @fld, scalar reverse $1 while s/(.+?)\s*=\s*\S+\s*//; print join( ',', @fld ), "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://970073]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2017-12-17 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (466 votes). Check out past polls.

    Notices?