use Tk; my $mw = MainWindow->new(); $mw->update(); print $mw->geometry();