my $button1 = $mw->Button(-text => "18-Letters", -command => sub {print OUTFILE "18L\n", background => "yellow"})->pack(-side =>"top"); #### my $button1 = $mw->Button(-text => "18-Letters", -command => sub {print OUTFILE "18L\n" }, -background => "yellow"})->pack(-side =>"top"); #### sub { print OUTFILE "18L\n", background => "yellow" } #### sub { print OUTFILE "18L\n", "background", "yellow" }