Tracking the number wrong is left as an exercise for the reader...@ra=qw/foo baz one two/; @sub=qw/foo qux one three/; print join'<br>',map@ra[$_]eq$sub[$_]?"answered $_right":"answersed $_ + wrong!",0..@sub;
In reply to Re: Writing a perl quiz. Need advice.
by BUU
in thread Writing a perl quiz. Need advice.
by DigitalKitty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |