M
Matija Papec
I thought that output should be the same for all four lines but they differ.
Am I running buggy perl? (5.8.0)
use strict;
use warnings;
for my $i (0..3) {
my $row=2;
my $tmp = join ' ', map { $_ += 5*$row } 0 .. 4;
print "$row - $tmp\n";
}
---------- Capture Output ----------
2 - 10 11 12 13 14
2 - 20 21 22 23 24
2 - 30 31 32 33 34
2 - 40 41 42 43 44
Am I running buggy perl? (5.8.0)
use strict;
use warnings;
for my $i (0..3) {
my $row=2;
my $tmp = join ' ', map { $_ += 5*$row } 0 .. 4;
print "$row - $tmp\n";
}
---------- Capture Output ----------
2 - 10 11 12 13 14
2 - 20 21 22 23 24
2 - 30 31 32 33 34
2 - 40 41 42 43 44