programming-examples/perl/Statement/while-until Loop.pl

10 lines
195 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#while ( conditional expression ) {
# code block A
#}
$count=0; # Initial value
while ($count < 10 ){ # Test
print $n;
$count++; # Increment value
}