Why do I get server errors when uploading a perl script?

I am trying to add items to a perl script form which processes items to be sent to a shopping cart. I modified the script, copying every line exactly & added the correct item numbers.  But I keep getting error messages.

 When I copy the script, delete a blank line and immediately add the blank line back in (just to check out what was going on,,,this was the smallest change I could make & fix easily), then upload it, the script, even though it is now back in it's exact original form, gives me an error message when I try to process the data.  

I am running Windows 95 and believe this may have been written on a Unix machine.  My server is running Apache over Linux.  I am not familiar enough to know more than this.  

It is imperative that I get this script expanded as soon as possible.  What can I do to make it work?  As far as I can tell, there is nothing else that would cause it to fail.
Who is Participating?
MindoConnect With a Mentor Commented:
Do the following:

1. Check the file permissions. Are they the same before you edit the file and after it.

2. The difference between Unix/Linux and Windows text files families lies in the new line symbol. The new line symbol under Unix is \n\r and it's \n under Windows. Open your file with FAR and then with NotePad and you'll see the difference.

3. Look at the error messages. I think they're informative. What do the error messages say?
pdevoreAuthor Commented:
Edited text of question.
What are the error messages?
How do you copy and upload the script?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.