Feb 062009
Convert DOS/MAC to UNIX text file format converter
Answer:
Sometimes if a file was edited on Windows, and you might find strange characters "^M" occur at the end of every line when you open in vim under Linux, you can use the dos2unix command to reformat the file format to remove them.
E.g.
# dos2unix input.pl output.pl