... in Foo ... submethod BUILD { $.foo = 1 }; ... in Bar ... submethod BUILD { $.bar = 2 };