Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PERL

perl do while loop

# Basic syntax:
do {
   code to run;
} while( condition );

# Example usage:
$i = 5;
do {
   print "Value of i: $i
";
   $i += 1;
} while( $i < 10 );
# Note, do..while loops are very similar to while loops except that they
#	always execute at least once
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #perl #loop
ADD COMMENT
Topic
Name
7+5 =