You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
foreach ( 1 .. 10 ) {
|
|
|
|
if ( $_ == 5 ) {
|
|
$skipped = $_; # store skipped value
|
|
next; # skip remaining code in loop only if $_ is 5
|
|
}
|
|
|
|
print "$_ ";
|
|
}
|
|
|
|
print "\n\nUsed 'next' to skip the value $skipped.\n";
|