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 ...
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.