Next | Program Repair Shop | 283 |
for my $x (0..2) { for my $y (0..2) { $squares->[$x][$y] = $page->param("[$x][$y]"); } }
What if I use a single loop from 0 to 8?
Would that be simpler?
I would save a for and a block.
Next | Copyright © 2002 M. J. Dominus |