Max Attems wrote:
: now conf.cgi is ok but still, i get this error message, which i couldn't
: fix:
: Use of uninitialized value in string ne at send.cgi line 20.
: line 20 is looking for a string defined in conf.cgi, why does it not use it.
: line 20: if( $pass ne $passwort ) {
: (the variable was defined in conf.cgi: $passwort = "blabla";)
How about $pass?
This warning indicates that you're using a variable that has a value of
undef. I assume that $pass is getting its value from the HTML form.
Then if a password is not given in the form, it will be undefined, and
you will get this warning.
I don't know exactly how you're setting $pass, but to avoid the error,
you can do something like:
my $pass = param("pass") || "";
In other words, set it to an empty string (which is not the same as an undef).
-- tdk