Perl Logical AND && and OR ||
by Geethalakshmi[ Edit ] 2010-09-17 14:05:50
Perl Logical AND && and OR ||
The && is used to test that two expression are true. The following only gets executed if both expressions are true.
if ( tihs_is_true && also_true ) {
}
The || is used to that either express is true. The following gets executed if one or the other expression is true.
if ( this_is_true || or_true ) {
}