Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arithmetic: empty answer is not a number (#541)
* arithmetic: empty answer is not a number * regex m/\D/ didn't match on empty string, so previously if I typed enter instead of a number it was treated as a wrong answer * It's more correct to treat empty line as bad input and prompt again for a number * While here, make the input loop more user friendly by trimming leading and trailing spaces before testing for m/\D/ * back out 'use warnings'
- Loading branch information