Welcome to the Monastery | |
PerlMonks |
Re: Perl logical operatorsby choroba (Cardinal) |
on Jul 18, 2018 at 06:47 UTC ( [id://1218718]=note: print w/replies, xml ) | Need Help?? |
true and false are barewords with no special meaning in Perl. Moreover, you should use strict: it would have told you
The common value used for true is 1, for false, you can use 0, "" or undef. Also, $a and $b are special variables used in sort, it's better not to use them anywhere else.
In Section
Seekers of Perl Wisdom
|
|