On 12.9.2010 14:46, Octavian Rasnita wrote:
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



This is not Moose related.  The code below will give you the same result.

package WxTrial;

use Wx;

@WxTrial::ISA = 'Wx::SimpleApp';

1;

package main;


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


Reply via email to