in reply to Re: $ENV{'REQUEST_METHOD'} undefined?
in thread $ENV{'REQUEST_METHOD'} undefined?

I belive this is a problem with my Perl syntax since I have used this subroutine in the past without error on the same server running the same version of Perl. I have recently moved the subroutine readPostInput() from the bottom of the script to the top because I was receiving an error similar to this:

main::readPostInput() called too early to check prototype at index.pl line 18.

This problem didn't persist until after I used this forward declaration technique.

Replies are listed 'Best First'.
Re^3: $ENV{'REQUEST_METHOD'} undefined?
by rovf (Priest) on Nov 30, 2009 at 13:36 UTC
    I belive this is a problem with my Perl syntax
    Did you verify the environment at the point of failure? Honestly, we are talking whether or not a certain environment variable is or is not defined at a particular point of the program. This can be verified easily. Also, you can verify whether this environment variable is or is not defined at the start of the program (to cover the case where your program is deleting it from the environment). What did you find out in this respect?

    -- 
    Ronald Fischer <ynnor@mm.st>