Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Proper use of "EQ" or while loopsby davido (Cardinal) |
on Jul 22, 2013 at 15:30 UTC ( [id://1045674]=note: print w/replies, xml ) | Need Help?? |
I would probably turn the Boolean expression into $input !~ /^c$/i, but your class probably hasn't gotten to regexes yet. If this is not homework, prompting made easy:
...of if you never need to look at $input again:
Dave
In Section
Seekers of Perl Wisdom
|
|