Perl Logical AND && and OR ||

by Geethalakshmi 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 ) {
}

Tagged in:

1067
like
0
dislike
0
mail
flag

You must LOGIN to add comments