programming-examples/perl/GUI/Your first Perl-Tk program.pl
2019-11-15 12:59:38 +01:00

6 lines
153 B
Perl

#!/usr/bin/perl
use Tk;
my $mw = MainWindow->new;
$mw->title('Hello World');
$mw->Button(-text => 'Done', -command => sub { exit })->pack;
MainLoop;