Hi!
As it seems, you're trying to run a CGI script directly from the console -
so the script doesn't know what to do with the CGI environment variable
CONTENT_LENGTH, and later on, it doesn't know the hash %INPUT either, which
seems to be the input that was submitted from a HTML form.
This script cannot be called like that from console, but it must be placed
in the CGI scripts' directory of your web server (often, but not always,
it's called cgi-bin, and in a typical Apache configuration it's not really
within the public server directory (htdocs) for security reasons, but
outside of it and just aliased by a ScriptAlias directive in the
httpd.conf). After it's properly installed in the cgi-bin directory, it has
to be invoked from a web browser to function correctly. Just type in its URL
like:
http://mywebserver/cgi-bin/myscript.pl
or anything like that (while, in some environments, the file extension must
be .cgi instead of .pl -> just change it), where mywebserver might also be
localhost aka 127.0.0.1
Besides, make sure to include
use CGI::Carp qw(fatalsToBrowser);
into your script to have a verbose error output to the browser in which
you're testing it.
Hope that helps
Sascha
----------
>Von: "Sally" <[EMAIL PROTECTED]>
>An: "perl" <[EMAIL PROTECTED]>
>Betreff: errors
>Datum: Fre, 27. Jul 2001 10:10 Uhr
>
> I'm getting error messages that I don't understand. Below are the errors and
> the associated line of code, any help would be much appreciated,
>
> Sally
>
>
> Use of uninitialized value in read at guest.pl line 35.
> read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
>
> Use of uninitialized value in concatenation (.) at guest.pl line 165.
> print ("Your E-mail:<input type=text name=\"email\"
> value=\"$INPUT{'email'}\"><br>\n");
>
> Use of uninitialized value in concatenation (.) at guest.pl line 171.
> print ("<textarea name=comments COLS=60 ROWS=4 name=\"comments\"
> value=\"$INPUT{'comments'}\"></textarea>\n");
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]