Chapter 6. Conditional constructs

Table of Contents
In this chapter...
What is a block?
What is a conditional statement?
What is truth?
Comparison operators
Types of conditional constructs
Practical uses of while loops: taking input from STDIN
Named blocks
Breaking out of loops
Chapter summary

In this chapter...

In this section, we look at Perl's various conditional constructs and how they can be used to provide flow control to our Perl programs. We also learn about Perl's meaning of Truth and how to test for truth in various ways.