http://www.perlmonks.org?node_id=314551

eoin has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks, I recently read the Perl News article about GTK2 and decided to look into it as I have alwats thought that Tk just didn't look good enough. I went to the GTK2 Win Bin home page and downloaded and installed all the dependecies and file nessicary.
I also found the following code to use as an example
#!/usr/bin/perl use Gtk2; Gtk2->init(\@ARGV); my $window = Gtk2::Window->new('toplevel'); my $button = Gtk2::Button->new_with_label("Hello World"); $window->add($button); Gtk2::GSignal->connect($button,"clicked", sub { Gtk2->quit(); r +eturn 0 }); $window->show_all(); Gtk2->main(); exit 0;
When I run this code I get this error message
Usage: init(class) at gtk_example.pl line 3.
Personally I don't have a clue what this means and I thought that I'd post this here while I keep looking around the docs.
Also I love if any one could point me to a good tutorial for using GTK -perl with windows becuase this is my first ever look at it.
Thanks

All the Best, Eoin...

If everything seems to be going well, you obviously don't know what the hell is going on.