use Win32::GUI; use strict; use warnings; my $main = Win32::GUI::Window->new(-name => "Main", -width => 110, -height => 100); # This line is failing $main->AddLabel(-text => "Hello, world"); $main->Show(); Win32::GUI::Dialog(); exit; # terminate the message loop when the window is closed sub Main_Terminate { -1 }