in reply to Warning Messages

I'd guess it's the fact that $ENV{CONTENT_LENGTH}, $name{age} and $ENV{QUERY_STRING} are all undefined on those particular lines.

The first and third problems are often caused by testing CGI applications in a non-CGI environment.

Update: And looking at it again, the first also seems to be evidence of you using a home-grown (and potentially buggy) CGI parameter parser rather than the one in CGI.pm.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."

Replies are listed 'Best First'.
Re: Re: Warning Messages
by Anonymous Monk on Nov 19, 2001 at 17:48 UTC
    Hi Dave, could you clarify what you mean by undefined on that line ? Thanks

      What he means is that if you are running this script locally on your machine, and not through a web server, the environment variables you are trying to use may not be there meaning they are undefined. Try running them through a server and see if you have the same problem.

      -----------------------------------
      Washizu
      The best offense is a good offense.

        Thanks..I fixes all except the read line, any ideas how i can fix that ?

      I mean that by the time the line is executed, the variable hasn't been given a value.

      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you don't talk about Perl club."