in reply to Perl/Tk : Trouble with commands and Checkbuttons

Just as a side note:

The -command requires a reference to a subroutine, not code.

So... your code snippet

$mw -> Checkbutton ( -activebackground => "white", -command => &react ("\"$x\_$y\""); -command => print "hi" # <= this is a change ) -> grid ( -row => $x, -column => $y ); ....
should have the -command replaced with
-command => sub {print "hi"} # <= this is a change ....