Perl Logical AND && and OR || - Perl Views : 159
Tagged in : Perl
0 0
Send mail

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

By Geethalakshmi, On - 2010-09-17



    Login to add Comments .