You could get yourself a text editor that writes unix linefeeds. EditPlus (
http://www.editplus.com/) is quite nice, and does colour-coding of a variety of language's operators, functions etc (yes, including perl).
Apart from that, if you copy the files in ascii mode rather than binary, that should also fix your problem.
Guy