The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/local/bin/perl -w
use strict;
use Tk;
use Tk::widgets qw(Button);
#use Carp ();
#$SIG{'__DIE__'} = \&Carp::confess;

my $mw = MainWindow->new();
$mw->Button(-text => 'Quit', -command => [destroy => $mw])->pack;
$mw->Button(-text => 'Exit', -command => sub { exit } )->pack;
MainLoop;