- or download this
##Run this program and see what happens
use Tk;
...
-command => sub { exit })
-> pack();
MainLoop;
- or download this
use Tk;
my $mw = new MainWindow;
my $ent = $mw -> Entry() -> pack();
MainLoop;
- or download this
use Tk;
#Global Variables
...
my $name = $ent -> get();
$txt -> insert('end',"$name\($gender\) is $age years old.");
}