O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Control Structures

Control structures provide programs with the capability to make decisions, to perform actions based on criteria. Perl has basically two types of control structures: conditionals and interactives. Conditionals are based on the concept that if something is true, perform some action once. Interactives (also known as loops) are based on the concept that if something is true, perform some action until that something is no longer true. This brings us to the question, what is truth?

What Is Truth?

This is a question that has plagued philosophers for thousands of years. Fortunately, we are programmers, not philosophers, and we know what truth is. Truth can be broken down into two types. The first way of looking at truth is a simple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required