You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
289 B
Perl

#The while command loops while a condition is true.
#So long as the condition remains true, all of the commands inside the block execute again and again.
#while (condition) {
# # ...
#}
#!/usr/bin/perl -w
$i = 0;
while ($i < 10) {
print "Iteration $i.\n";
$i++;
}