Tomas Doran wrote:

On 7 Feb 2009, at 14:15, Fayland Lam wrote:

$ cat test.pl
package IRC::Bot2;

use Moose;
extends 'IRC::Bot';

after 'bot_start' => sub {
   my $self = shift;

   no warnings;    $IRC::Bot::log =  IRC::Bot::Log2->new(


Is that on perl 5.8?

And if so, does it work if you set CLASS_MOP_NO_XS=1 in your environment?

If so, it's a known bug, and you can work around it by adding 'require IRC::Bot;' to your script before the 'extends' line.

http://code2.0beta.co.uk/moose/svn/Class-MOP/trunk/t/306_is_class_loaded.t

well, it's perl 5.10 and 5.8.
and no CLASS_MOP_NO_XS=1 in my ENV.

and add require 'IRC::Bot'; before extends, it's working again.

Thanks. but I think we'd better fix it by not adding require.



Cheers
t0m




--
Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/

Reply via email to