I assume that the "<br>" strings I see in your code are not really part of your perl script; these (I hope) are due to a misunderstanding about how postings are done here -- check out the Site How To and Perl Monks Site FAQ. (If those tags are in your perl script, take them out; they don't belong there.)

Have you checked the ownership and permissions on the script file? It needs to be globally readable and executable by the user account that runs the web server (usually "nobody"); it also needs to be in a path that the server account can reach (all directory levels above the script file must grant read and execute permissions to the web server's user account).

But I suppose the error message might have said something about "permission denied" if it was a mode-flag problem...

Since you're the boss on that system, you must know where the web server's error log is. Generate the failure, then run "tail" on the error log, to see what the perl interpreter or web server said about the nature of the error.

Apart from the "break" tags that don't belong there, I don't see anything about the script itself that should be a problem. Check the web server config file, to make sure it's enabled to execute a cgi script in the directory where you have placed this script, etc.


In reply to Re: Re: Re: Re: Re: print statement does not work by graff
in thread print statement does not work by Hammy

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.