Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[Corion]: I hope marioroy will provide a better solution than my homemade approach of spawning children and collecting results ;)=
erix sniffs a MCE-solution brewing
[Corion]: Yeah ;)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-08-18 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (301 votes). Check out past polls.

    Notices?