OK. So I've got my script working like I want using the TK to build my list of selections. Now, however, when I close the menu, it does not execute my last statement in my program to run the next script after MainLoop; Trying to run my $var =`crossref.pl`; in order to go to my next script. Before adding the menu, this worked. Now it does not. I'm posting the last 11 lines so you can see what I'm trying to do. Any help is appreciated.
my $button_frame = $mw->Frame()->pack(-side => "bottom");nCheck #13: $check13\nCheck #14: $check14\n,Check #15: $check15\nCheck #16 $check16";
my $ok_button = $button_frame->Button(-text => 'OK',
-command => \&check_sub)->pack(-side => "left");
my $exit_button = $button_frame->Button(-text => 'Exit',
-command => sub{exit})->pack(-side => "right");
sub check_sub {
my $check_msg = "Check #1: $check1\nCheck #2: $check2\nCheck #3: $check3\nCheck #4: $check4\nCheck #5: $check5\nCheck #6: $check6\nCheck #7: $check7\nCheck #8: $check8\nCheck #9: $check9\nCheck #10: $check10\nCheck #11: $check11\nCheck #12: $check12\
$mw->messageBox(-message => "Check Button Summary:\n$check_msg", -type => "ok");
}
MainLoop;
my $var =`crossref.pl`; #Should run my crossref.pl but does not.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 353 |
Nodes: | 16 (2 / 14) |
Uptime: | 78:47:59 |
Calls: | 7,639 |
Files: | 12,802 |
Messages: | 5,691,831 |