return !!1 if $user eq $pass; return !!0;
It seems redundant? Actually why even use any ! operators at all and just return the literal code you intend. I can sort of see doing this for exit() to the shell, because the shell exit codes are backwards from Perl. An exit code 0 means success, whereas inside Perl program boolean 0 is false.
In reply to Re^4: [Re]confirm box
by Anonymous Monk
in thread [Re]confirm box
by kbee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |