Help for this page

Select Code to Download


  1. or download this
    package Foo;
    use Moose;
    ...
    
    print Foo->new->bar # "Foo::bar"
    print Foo::Bar->new->bar; # "Foo::Bar::bar"
    
  2. or download this
    has 'foo' => (is => 'rw', default => sub { $_[0]->build_foo });