Hi,

Can WxPerl be used with Moose?

I have tried the following test program:

package WxTrial;

use Moose;
use Wx;

extends 'Wx::SimpleApp';

1;

package main;

#my $t = WxTrial->new;

my $t = WxTrial->new(foo => "bar");

The program gives the following error if I use it with the parameter foo => 
"bar":

sub must be a CODE reference at E:/usr/site/lib/Wx/App.pm line 36.

It doesn't give any error if I don't use any parameter with the new();

Thanks.

Octavian

Reply via email to