#!/usr/bin/perl
use warnings;
use strict;
use threads;
use threads::shared;
use Tk;
my %shash;
my %hash;
share ($shash { 'liga'});
#!/usr/bin/perl
my $mw = MainWindow->new;
$Shash { 'liga'} = 1;
$Shash { 'desliga'} = 0;
##$mw->Button(-text => "Hello World!", -command =>sub{exit})->pack;
my $startb = $MW-> Button (-text => 'Start',
-command => sub {
$ Shash { 'ir'} = 1;
$MW-> depois (1000);
-> Pack ();
my $stopb = $MW-> Button (-text => 'Stop',