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.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
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |