in reply to Re^2: $cgi->param() values are not updated instantly when read in a subroutine
in thread $cgi->param() values are not updated instantly when read in a subroutine

1) explain how you're running the perl program, mod_cgi, FCGI, mod_perl, mod_perlite.... what? 2) check the logs :)
  • Comment on Re^3: $cgi->param() values are not updated instantly when read in a subroutine

Replies are listed 'Best First'.
Re^4: $cgi->param() values are not updated instantly when read in a subroutine
by Lukas (Initiate) on Mar 09, 2011 at 13:48 UTC
    The server is pretty much a standard installation of Debian 5.0.7. I work within the /cgi-bin/ directory of ePrints Version 3.2.4 (a kind of CMS) that was automatically created when I installed the package from here http://files.eprints.org/580/

    When there is an internal server error, I see the following line at the bottom:

    Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0

    I didn't mess much around so I can't tell you about most of the things.
      The server is pretty much a standard installation...

      due to cgi-bin, I'll assume you're running under mod_cgi

      Although, seeing how your program seems to misbehave, that probably isn't the case.

      And there are no warnings in the server logs??

      Try this

        I'm currently on the way, so I don't have all data available. However, I had a peek at the logs and I read something about $cgi (and maybe others) that it will not stay shared or so. I think its the thing described here: http://www.webreference.com/programming/perl/subroutines/2.html (at the end of "Private Variables and Nested Subroutines"). I'll have a look at it tomorrow. Thank you for your help so far.