Yes, I have read the whole answer; I have also tried adding "g", but it did not work properly. As I have mentioned, I have tried using the comma as a usual character, and it did not work properly:
perl -pe 's/,/\t/' input.txt > output.txt
This does not work :(