in reply to nonprinting chars

^M at the end of lines is a good indication that you've got a file written on one operating system, moved to another operating system without properly converting line endings. The non-Perl commands, dos2unix, and unix2dos will convert those line endings for you.

Also, use ASCII mode when you do FTP transfers of Perl scripts, or any other plain-text-based file. Most FTP clients will handle the line ending conversion for you.


Dave