Perl Programming Question:
How do I replace every <TAB> character in a file with a comma?
Answers:
Answer #1perl -pi.bak -e 's/t/,/g' myfile.txt
Answer #2regex is wrong it should be s/\\\\t/,/g
Previous Question | Next Question |
How do I do < fill-in-the-blank > for each element in an array? | What is the easiest way to download the contents of a URL with Perl? |