As gellyfish mentioned, there's a lack of data that can really help you. I would first off recommend you take a look at the links offered at Intro to the Monastery to get an idea of the best way to ask for help. It's not 'cause we're snobbish, but simply so that folks don't have to spend time doing what I'm about to do in the next paragraph: Guess at Your Situation. Plus, you don't have to play "guess what we need" quite so much, so you and we all win! So, the questions/comments:

  1. If you're not, Use CGI.pm. REALLY.
  2. What is the name of your editing program?
  3. What OS and Web Server are you using?
  4. Are you sending a header with your code? (CGI.pm makes sending headers dead easy!)
  5. Have you the correct permissions for the code?

That error tends to come with bad, or no, headers being sent with your program. And that's one of many possible issues. You might want to also Google for that error; it's a very common one that has little, sometimes, to do with Perl, and a lot to do with how your Web Server serves up CGI (which is lanaguage-neutral).

Finally, a few (thousand) words from Ovid:

Does any of this help?

----Asim, known to some as Woodrow.


In reply to Re: CGI Error by Asim
in thread CGI Error by Lhamo_rin

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.