#!/usr/bin/env perl use strict; use warnings; use Tk; my $mw = MainWindow::->new(); ... MainLoop;