Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Syntactic Confectionery Delight
 
PerlMonks  

Re: Modifying text file - I like PIE :-)

by space_monk (Chaplain)
on Jun 05, 2013 at 13:23 UTC ( #1037209=note: print w/ replies, xml ) Need Help??


in reply to Modifying text file

Something like:

perl -pie 's/(\w+)/$1,/g' yourFile
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)


Comment on Re: Modifying text file - I like PIE :-)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2014-04-16 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (432 votes), past polls