i have the following code
$mw = Tkx::widget->new(".");
for($i = 0, $i <= 8, $i++) {
use integer;
$board[$i] = $mw->new_ttk__button(-textvariable => \$state[$i], -command => sub {btnPressed($i);}, -width => 3)
->g_grid(-row => ($i / 3) + 1, -column => ($i % 3) + 1);
}
it is...