Hello,

Use of uninitialized value in concatenation (.) or
string at cgi_7.pl line 31.
</html><p />This is your name

Use of uninitialized value in concatenation (.) or
string at cgi_7.pl line 35.

Line 31 and 35 are using data that in uninitialized.

For instance calling param() on a parameter that has not been passed to the script will return a value thats been uninitialized.

For instanc e it appears its the name so calling your script with
?name=bob at the end of the url will make sure "name" is initialized.

Alternatively you can check for that and assign an appropriate value

my $name = param('name') || '';

or better yet handle it:

if(defined $name) {
    # if its valid , HTMLescape it and print it
    # otherwise tell them they did bad :)
}
else {
    # ask them for theri name
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to