Source

WxPerlBook / example / 2a_minimal_subset / start.pl

Full commit
use v5.12;
use warnings;

package App;
use parent qw(Wx::App);
use Wx;

sub OnInit {
	my $app   = shift;
	my $frame = Wx::Frame->new( undef, -1, 'Greetings Wx');

	$frame->Center();
	$frame->Show(1);
	$app->SetTopWindow($frame);
	1;
}

package main;
App->new->MainLoop;