wxPerl is a perl module by Mattia Barbon, allowing the creation of graphical user interface (GUI) from Perl programming language. It is built as an XS-wrapper for the WxWidgets (C++ GUI widget toolkit). Like perl and wxWidgets, wxPerl is free software.
use strict;
use warnings;
use Wx;
package MyApp;
use base 'Wx::App';
sub OnInit
{
my( $self )=@_;
my $frame=Wx::Frame->new(undef,-1,"My First GUI Frame In Perl",[0,0],[300,250]);
$frame->Show(1);
return 1;
}
package main;
my $app=MyApp->new;
$app->MainLoop;
use strict;
use warnings;
use Wx;
package MyApp;
use base 'Wx::App';
sub OnInit
{
my( $self )=@_;
my $frame=Wx::Frame->new(undef,-1,"My First GUI Frame In Perl",[0,0],[300,250]);
$frame->Show(1);
return 1;
}
package main;
my $app=MyApp->new;
$app->MainLoop;