PERL Syntax Conditional Statements do...while

 

- Info:

- This tutorial shows how to use do...while conditional statement.

- Loop will execute at least once.

 

- Procedure:

- Create "PERL Application" Test.pl.

 

Test.pl

#SIMPLE. Output:12345.

$i = 0;

do{

$i++;

print $i;

} while($i<=4)