Would you be so kind to let me know what's the mistake in this code? Thank you so much in advance! :)
print "please enter one character: "; $char = <>; while ($char ne ".") { if ($char eq "a") { $count++; } print "please enter one character: "; $char = <>; } print "The number of a is $count"; print "done";
In reply to Perl Beginner by Rasha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |