<?xml version="1.0" encoding="windows-1252"?>
<node id="918" title="Control statements and looping" created="1999-11-02 21:58:05" updated="2005-08-15 12:52:38">
<type id="956">
perltutorial</type>
<author id="113">
root</author>
<data>
<field name="doctext">
Perl offers an abundance of looping and control statements. 
Some quick notes if you're a C, C++, or Java programmer Perl
requires curly braces around blocks of code even if your for loop
 has only one line of code.
Secondly, if you're new to programming these control statements test 
whether a statement is true of false and then control execution of 
the program based on the results.  You might want to look at [what is true and false in Perl?]&lt;BR&gt;
&lt;BR&gt;Or you can dive right into the control statements&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;[if statements]
&lt;LI&gt;[unless statements]
&lt;LI&gt;[while loops]
&lt;LI&gt;[until loops]
&lt;LI&gt;[do while loops]
&lt;LI&gt;[do until loops]
&lt;LI&gt;[for loops]
&lt;LI&gt;[foreach loops]</field>
</data>
</node>
