perl -e 'for $i (1..9){print "Next", next if $i == 5;print $i}' Output: 12346789