<?xml version="1.0" encoding="windows-1252"?>
<node id="951" title="do until loops" created="1999-11-04 23:59:58" updated="2005-08-15 08:29:32">
<type id="956">
perltutorial</type>
<author id="113">
root</author>
<data>
<field name="doctext">
These work the same as [do while loops] only they execute until the condition evaluated is true&lt;BR&gt;
Here's a quick example:&lt;BR&gt;
&lt;PRE&gt;
$value=5;
do{
  print "$value\n";
  $value=$value-1;
} until($value&lt;=10);
&lt;/PRE&gt;
&lt;BR&gt;
&lt;BR&gt;
This is executes once and prints out $value;&lt;BR&gt;
5&lt;BR&gt;
Then $value is decremented and becomes 4&lt;BR&gt;
since 4&lt;=10 is true execution of the loop is terminated&lt;BR&gt;
&lt;BR&gt;
Now onto the exciting world of [for loops]
&lt;BR&gt;
</field>
</data>
</node>
