Migrating from Moose to Mouse in Perl - Mouse not executing BUILD
问题 I'm trying to migrate from Moose to Mouse in the interests of speed but have encountered a showstopper error. I'm building two objects in the same scope: sub scope { my $foo = Foo->new(); my $bar = Bar->new(); } The BUILD method of Foo is firing but the BUILD method of Bar is not. Any ideas? Both Foo and Bar inherit from Baz which inherits from Mouse::Object. 回答1: You're not really providing enough context for anybody to debug this. Also I'm worried about your comment migrating from Moose to