You didn't leave as much to go on as you possibly thought, but here is an idea or two that might be helpful, if in the debugging process.

First of all, what kind of server are you uploading to? Is it another Windows-based system (NT, 2K, XP, etc.), or a *nix system (linux, solaris, *bsd, etc.)? What error message are you actually seeing when you try to execute the script? I'm not convinced that it is strictly because of XP that you are having the difficulties, unless there are other symptoms that you have not mentioned.

Since you seem to indicate that all you did was save the content down to your local machine then re-uploaded it, could it possibly be that when the file is being uploaded, the line endings are not being translated from the Windows \n\r to the appropriate ending? I am unfamiliar with the editors you mentioned-do they have settings for saving text files with the appropriate line endings?

Just a few thoughts that I hope help.

Update: I ran across CGI Help Guide in the Tutorials section, which might also be useful.


In reply to Re: XP messing up my CGI files by atcroft
in thread XP messing up my CGI files by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.