You need to give your widgets a -name and the label needs a position. Also, if you do not include Win32::GUI::Dialog() your window will not remain open.
Try this one. use Win32::GUI; $main = Win32::GUI::Window->new(-name => "Window", -width => 100, -height => 100); $main->AddLabel(-name => "label", -left => 5, -top => 5, -text => "Hello Mark"); $main->Show(); Win32::GUI::Dialog(); > -----Original Message----- > From: Mark Hindmarsh [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2001 9:32 AM > To: 'perl-win32-gui-users@lists.sourceforge.net' > Subject: [perl-win32-gui-users] Newbie: Win32::GUI - Problem finding > loadable object for module W in32::GUI > > > > > Hi guys, > > > > As a newbie to both Perl and Win32:GUI I am a little > confused with an > > error message I am receiving after running the simple Perl > script below. > > > > -- Can't locate loadable object for module Win32::GUI in @INC (@INC > > contains: C:/Perl/lib C:/Perl/Site/lib .) at (eval 2) line 3 -- > > > > The script is as follows: > > > > <Job Id="First Win32::GUI attempt"> > > <script language=PerlScript> > > > > use Win32::GUI; > > $main = Win32::GUI::Window->new(-width => 100, -height => 100); > > $main->AddLabel(-text => "Hello Mark"); > > $main->Show(); > > > > </script> > > </job> > > > > I have ActivePerl installed in C:/Perl and Win32::GUI installed in > > C:/Perl/site/lib/Win32GUI > > I also tried copying GUI.pm from C:/Perl/site/lib/Win32GUI into > > C:/Perl/site/lib, but to no avail. > > > > What 'loadable object' is it looking for? GUI.pm or something else? > > > > Can anyone help me?? > > > > I look forward to your reply, > > > > Regards, > > > > Mark > > > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >