programming-examples/perl/Statement/Example using the continue block.pl
2019-11-15 12:59:38 +01:00

10 lines
147 B
Perl

#! /usr/bin/perl#
for ($i=1; $i<=10; $i++) {
if ($i==5){
print "\$i == $i\n";
next;
}
print "$i ";
}