in reply to cgi help needed.

You have not told us what error message appears in the web server error log.

But then again, I guess that the error message will likely be something like File not found: ScoreProdMetsTest.xml, which happens because the "current directory" is not what you think it is. Use an absolute path instead.

As an aside, you can cut away about half of your code by throwing out your hand-rolled CGI parameter parsing and just using CGI.pm instead.

Replies are listed 'Best First'.
Re^2: cgi help needed.
by ub3rFrank (Novice) on Apr 29, 2008 at 21:11 UTC
    the error message is BEGIN failed--compilation aborted at scoredevbal800/www/cgi-bin/ib/xmlWriter.cgi line 3. referrer: http://scoredevbal800/addConfig.html.
    Premature end of script headers:....
    It says it is failing at the line use XML::Simple; Everytime i switch its location the error points to the line that it is on. The paths are correct and I did switch them to the absolute path before I posted this and it still didn't work. Thanks.
      Perhaps your web server is using a different perl than you think it is. Perhaps it doesn't have read permissions to your library directory. Perhaps @INC is different under your web server than under your personal shell. Perhaps your web server doesn't have the module installed.

      In any case, your issue appears to be that you're not getting XML::Simple from the context of your web server. Try some debugging or ask your server admin (or tech support) why you're having problems requiring XML::Simple since that's the problem.