You seem to have a bunch of comment lines near the top that do not start with "#". Make sure that these lines really do have "#" as the first non-space character:
This Perl CGI is a sample KRPS external CGI Copyright © 2004 Kagi. All rights reserved. Permission is granted to use this specification and code for developme +nt and No warranty is made as to the suitability of code herein BECAUSE THE CODE IS LICENSED FREE OF CHARGE, THERE IS NO
You also have something that looks like a double quote character but really is not the ASCII double-quote that perl is looking for to terminate a quoted string (at or near line 63, "Password did not match calculated version"). Then a missing single-quote and close paren at/near line 68, and more bogus double-quotes at line 71.

These things are what brother grep was referring to as probable "copy and paste errors". I was able to spot them easily because I use a text editor that understands most of perl syntax, automatically indents lines according to block nesting or line continuation, and colorizes text according to whether it's comment, quoted-string, reserved word, etc. (I use emacs, but there are other editors that have these features, and it's worthwhile learning to use any one of them.)

After you check those things and fix them where necessary, follow the other advice offered above, about checking whether the script compiles (with "perl -c"), whether the web server has permission to read and execute the perl script file, looking at the server error log if you can, etc.

There's also a way to run the perl script at the command line, by supplying a cgi parameter string to @ARGV. The CGI manual page is rather long, but worth taking the time to read it -- or at least skim it for the parts that interest you at the moment. This might not be relevant unless you are able to run a command line shell on the web server.


In reply to Re: KRPS System by graff
in thread KRPS System by solar

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.