Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Parsing issue

by I0 (Priest)
on Oct 08, 2002 at 14:14 UTC ( #203651=note: print w/replies, xml ) Need Help??


in reply to Parsing issue

use Text::ParseWords; %hash = /(\w+):((?:"[^"]*"|\s*,\s*|[^ ])*)/g; for(values %hash){ my @arr=parse_line(',', 1, $_); $_ = [@arr] if @arr > 1; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203651]
help
Chatterbox?
LanX googling for ones own childish humour has advantages ... see Pray for Paris
[LanX]: Moon not Mars

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-03-27 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.