There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I ran your program and it seems that Roger has answered your if/else statement question, if that's what you meant.
Your other problem is a typo which could have been averted using the Vars() method provided by CGI.pm - here's how you'd do that: I'd have a read through the CGI.pm manpage if I were you. As a rule, if you find yourself copy-and-pasting lumps of code inline you can be certain that you are doing something wrong. In this example, your program would be improved by generalising the repeated print statements into a subroutine that took as its arguments a question/answer pair. As a general observation, the HTML you are outputting isn't up to much either. Consider closing tags on all those forms at least. MB In reply to Re: Re: Simple Quiz Maker
by matthewb
|
|