"be consistent" | |
PerlMonks |
Re^3: Control Structure problem, mistake can't be foundby broomduster (Priest) |
on Aug 23, 2008 at 01:02 UTC ( [id://706354]=note: print w/replies, xml ) | Need Help?? |
Your problem is here:
Array indices in Perl start with 0. You are incrementing $i before you use it as an index to check the first answer. So the "correct" answer to the first question you ask should be "Moonlight Mile" ... ;-)
In Section
Seekers of Perl Wisdom
|
|