programming-examples/perl/Statement/Going onto the Next.pl
2019-11-15 12:59:38 +01:00

11 lines
222 B
Perl

#!/usr/bin/perl
use strict;
use warnings;
my @array = (8, 3, 0, 2, 2, 0);
for (@array) {
if ($_ == 0) {
print "Skipping zero element.\n";
next;
}
print "48 over $_ is ", 48/$_, "\n";
}