It returns true if its argument is defined and false otherwise. See perldoc -f defined.
The first time through the loop, $input is undefined so we don't want to try to compare it with anything and we equally don't want to warn the user that their guess was wrong when they haven't even entered a guess yet.
In reply to Re^7: Repeat question (redo)
by hippo
in thread Repeat question
by hchana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |