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

7 lines
133 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
$num=0;
while ($num < 10){
print "$num ";
$num++;
}
print "\nOut of the loop.\n";