in reply to Writing a perl quiz. Need advice.
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Writing a perl quiz. Need advice.
by davis (Vicar) on Mar 08, 2003 at 10:36 UTC |