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

Cheers
t0m

Reply via email to