Jul 4, 2001, 10:07 PM
Post #2 of 3
I'm not quite sure if this will help you, but it sounds like you are having a problem with BINARY/ASCII up-/download. I guess you are editing your script using Windows and some editor like Notepad. Your server is some flavor of Unix. You are up- and downloading your scripts in binary format. If all of this doesn't apply to you, you can safely forget the rest of the post ;-)
While Windows text files (such as your script) have lines terminated by a CR/LF sequence, most Unix systems only have the LF to terminate lines in text files. Unix Perl interpreters seem to have problems with the CR/LF, while Windows Perl interpreters can handle both formats. Unfortunately, if you open a file in Notepad that has only LF, you get these fancy boxes.
The solution is quite simple. If you choose ASCII-mode up-/download in your FTP client, all text files will be stored in the format the host requires. Which means if you upload, CR/LF's will be converted to simple LF, and if you download, it's vice versa.
As a first test, try to download the working script from the server in ASCII mode. It should no longer have these boxes if you open it. Then, try to upload your new script in ASCII mode, and it should work if there aren't any other errors in it.
I hope that this was really your problem, but to me it sounded like if it were.