in reply to Perl script server error after minor non-code modification

Wordpad is unsuitable for editing "plain text" files. It will convert your file to an RTF formatted file by default.

Use notepad.exe or another "proper" text editor. When using notepad.exe, make sure to save the file as "Text file", not as unicode text file, which will result in the same error as you already got.