5.15. Boolean expressions (logical operators)

Table 5-3. Logical operators

and&&
or||
not!
if (COND and COND) {
}

if (COND or COND) {
}

if (not COND) {
}

See also perldoc perlop for precedence and associativity tables and/or use () to define the order of evaluation.


If you are interested in on-site trainings by the author, please contact me directly.

Online courses: