programming-examples/perl/Statement/Using nested for loop to assign value to two dimensional array.pl
2019-11-15 12:59:38 +01:00

12 lines
140 B
Perl

for $outerloop (0..4) {
for $innerloop (0..4) {
$array[$outerloop][$innerloop] = 1;
}
}
print $array[0][0];