in reply to while loop almost correct

This is a style point, completely unrelated to your question...

When I see a bunch of print statements, I automatically think HERE-DOC:

print <<EOF; Question #1: Who is buried in Grant's tomb? A. Grant B. Yoda C. Liberace D. None of the above. The answer is: EOF

Replies are listed 'Best First'.
Re^2: while loop almost correct
by irvson (Sexton) on Nov 17, 2009 at 23:24 UTC

    Thanks. Problem solved. As is probably obvious from the question I posed, I'm just beginning to learn Perl. And I appreciate the style point. I'll take ALL suggestions. I wanted to eliminate that first "Pick a letter between a and d" because the question presents only those four choices. From my teacher's point of view, that extra "warning" seems unnecessary.