use Win32::GUI; # create main window # connect MouseUp handler to events of the window $main->Show();