- or download this
my $cl1 = sub {
foreach my $x (0) { print $x++; }
};
$cl1->();
$cl1->();
- or download this
my $cl2 = sub {
foreach my $x (0..1) { print $x++; }
};
$cl2->();
$cl2->();
- or download this
0101
- or download this
my $cl3 = sub {
foreach my $x (0..1,5..6) { print $x++; }
};
$cl3->();
$cl3->();
- or download this
for (1..2) {
foreach my $x (0..1,5..6) { print $x++; }
foreach my $x (0..1,5..6) { print $x++; }
}