Game Development Community

What's wrong witth this?

by The WiZaRd · in Technical Issues · 02/10/2001 (7:35 pm) · 1 replies

What's wrong with this perl script? (first one)

#!/user/local/bin/perl
print "Content-type:text/html\n\n";
$name= $formdata{'name'};
$age= $formdata{'age'};
$state= $formdata{'state'};
$mystate= "ohio";
if ($state eq $mystate) {
print "Hello $name . When did you turn $age ? I live in $mystate too!\n";
}
else {
print "Hello $name . When did you turn $age . I don't live in $state . I live in $mystate .;
}

About the author

Recent Threads


#1
02/21/2001 (4:45 pm)
>
else {
print "Hello $name . When did you turn $age . I don't live in $state . I live in $mystate .;
}
<

forgot the ending quotes. change to:

else
{
print "Hello $name . When did you turn $age ? I don't live in $state . I live in $mystate .\n";
}