Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: csv to flat-file

by Bilbo (Pilgrim)
on Nov 28, 2002 at 09:10 UTC ( [id://216260]=note: print w/replies, xml ) Need Help??


in reply to Re: csv to flat-file
in thread csv to flat-file

You need the 'g' on the end of the regexp, ie s/,/ /g;otherwise only the first comma is replaced (g for global). Also I think this should have read:

perl -pe 's/,/ /;' untested.csv

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found