The 'and' Operator : Boolean Operators « Language Basics « Perl






The 'and' Operator

    


#!/usr/bin/perl

use warnings;
print"51 ANDed with 85 gives us", 51 & 85, "\n";

   
    
    
    
  








Related examples in the same category

1.Logical Operators (Short-Circuit Operators)
2.! $v1 && $v2
3.&&, ||, and !
4.@a1 = $v1 && 1 .. 10;
5.Boolean Combination Operators
6.Compound Boolean operator Or: ||=
7.Logical operators are defined
8.Precedence with word operators and short-circuit operators
9.Short-circuit operators
10.Using boolean operator (and &&) to connect the comparison operator