0 Pluspunkte 0 Minuspunkte

Wie kann ich in Perl in einer Schleife ein Element überspringen so wie mit dem Befehl continue?

my $count = 0;
while ($count < 10) {
    print "$count\n";
    $count++;
}

von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Mit dem next Statement.

if($count == 5) {
    next;
}

von (396 Punkte)