programming-examples/perl/Statement/Example using the continue block.pl

10 lines
147 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#! /usr/bin/perl#
for ($i=1; $i<=10; $i++) {
if ($i==5){
print "\$i == $i\n";
next;
}
print "$i ";
}