in reply to Re^3: [Re]confirm box
in thread [Re]confirm box
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: [Re]confirm box (true false boolean context !!0 and !!1 )
by Anonymous Monk on Dec 24, 2014 at 11:07 UTC |