Perl Primer - University of California, Davis

The condition is one of the logical expressions we have seen in the previous section. The code block is a set of instructions grouped together. The code block is only executed if the condition is TRUE. if statements are very useful to check inputs from users, to check if a variable contains 0 … ................
................