Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: CSV cleanup problem...

by tlm (Prior)
on Jun 14, 2005 at 01:51 UTC ( #466345=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    split /(?<=")\s*,\s*(?=")/, $string
    
  2. or download this
    0  '"title"'
    1  '"Some Name, "some wierd title""'
    2  '"555-555-5555"'
    
  3. or download this
    my @fields = map { s/^"(.*)"\z/$1/; $_ }
                     split /(?<=")\s*,\s*(?=")/, $string;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2018-05-24 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?