Don't ask to ask, just ask | |
PerlMonks |
Re: Perl Beginnerby Marshall (Canon) |
on Nov 26, 2016 at 02:25 UTC ( [id://1176575]=note: print w/replies, xml ) | Need Help?? |
You are reading a line from the terminal, not just a single character. You need chomp to remove the line ending character(s). Also, get in the habit of indenting your code one level when looping.
In Section
Seekers of Perl Wisdom
|
|