Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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! :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2017-04-27 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (498 votes). Check out past polls.