Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

perl until loop

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

# Example usage:
$i = 5;
until( $i > 10 ) {
   print "Value of i: $i
";
   $i += 1;
}
# Note, until loops are kind of the opposite of whiles loop, they loops over 
# 	the code until the condition becomes true
Comment

perl while loop

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

# Example usage:
my $i = 5;
while( $i < 10 ) {
   print "Value of i: $i
";
   $i += 1;
}
Comment

PREVIOUS NEXT
Code Example
Perl :: perl read file 
Perl :: read a file in perl 
Perl :: perl sigils 
Perl :: Move files to new directory 
Perl :: len perl 
Perl :: perl running mechanize through tor 
Pascal :: print in pascal 
Pascal :: while do in pascal 
Pascal :: Pascal Game 
Powershell :: How to display firewall rule ports with powershell 
Gdscript :: godot get global position 3 
Gdscript :: godot print enum name 
Abap :: abap if statement 
Assembly :: tqdm label 
Assembly :: add text to image ffmpeg command 
Assembly :: undefined reference to `cv::inRange 
Assembly :: smt32f429 timer free running 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: list all node processes 
Javascript :: javascript radian to degree 
Javascript :: check react version terminal windows 
Javascript :: jquery only number allowed to 10 digit 
Javascript :: count number of checkboxes in html jquery 
Javascript :: javascript lowercase string 
Javascript :: regex date validation mm/dd/yyyy 
Javascript :: how to console.log formData 
Javascript :: js scroll to id 
Javascript :: sleep for 1 second 
Javascript :: jquery css add important 
Javascript :: dconf-editor install terminal 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =