dooberwah has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that when I try to print out the $last_question and the $answer variable the $last_question seems to stay the same. They also don't match in the if ( $last_question eq $answer ) statment. Hope someone else can find the bug in this because I've been having a lot of trouble with it. Thanks.my $match; if ($last_question eq $answer) { $match = 'yes'; } print header, start_html( -title => 'Esperanto Quiz' ), h1('Esperanto Quiz'), p( b($question) ), p( $match ), p( $last_question, $answer, ), start_form, textfield( -name => 'answer', -size => 40, -maxlength => 40 ), br, submit, hidden ( -name => 'last_question', -value => $lq, ), end_form, end_html;
-Ben Jacobs (dooberwah)
one thing i can tell you is you got to be free
http://dooberwah.perlmonk.org
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking Quiz Answers
by merlyn (Sage) on May 26, 2001 at 19:31 UTC | |
by dooberwah (Pilgrim) on May 26, 2001 at 19:36 UTC | |
|
Re: Checking Quiz Answers
by chipmunk (Parson) on May 26, 2001 at 21:28 UTC | |
|
Re: Checking Quiz Answers
by Vynce (Friar) on May 26, 2001 at 18:44 UTC | |
by dooberwah (Pilgrim) on May 26, 2001 at 19:17 UTC |