programming-examples/perl/String/Using string interpolation to reference two dimensional array element.pl

11 lines
122 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
for $outerloop (0..4) {
for $innerloop (0..4) {
$array{"$outerloop,$innerloop"} = 1;
}
}