Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
Boolean Operators « Language Basics « Perl
Perl
Language Basics
Boolean Operators
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.
The 'and' Operator
11.
Using boolean operator (and &&) to connect the comparison operator