Upgraded to pugs 6.13 after seeing "comprehensive support for interoperability with Perl 5 modules".

I want to test gui modules and I am trying the Gtk2 and Wx modules.

The following program works under perl5:
use strict;
use Wx;
my $app = Wx::SimpleApp->new;
my $frame=Wx::Frame->new(undef, -1, 'Hello world!');
$frame->Show;
$app->MainLoop;

The program places a window on the desktop with "Hello world!" as the title.

I naively modified to perl6 (wxtest.p6) as follows:
use perl5:Wx;
my $app = Wx::SimpleApp.new;
my $frame=Wx::Frame.new(undef, -1, 'Hello world!');
$frame.Show;
$app.MainLoop;

The following is the result:
$pugs wxtest.p6
*** No compatible subroutine found: "&Wx::SimpleApp"
   at wxtest.p6 line 2, column 1-28

Is the perl6 wrong?

I have also tested
use perl5:Wx <SimpleApp>;

Richard

Reply via email to