programming-examples/perl/Statement/A program that loops using a single-line conditional statement.pl

4 lines
81 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/local/bin/perl
$count = 0;
print ("$count\n") while ($count++ < 5);