programming-examples/perl/Statement/A program that loops using a single-line conditional statement.pl
2019-11-15 12:59:38 +01:00

4 lines
81 B
Perl

#!/usr/local/bin/perl
$count = 0;
print ("$count\n") while ($count++ < 5);