Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
The 'and' Operator : Boolean Operators « Language Basics « Perl
Perl
Language Basics
Boolean Operators
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