From: Yuval Kogman Date: Mon, 30 Jun 2008 13:51:37 +0000 (+0000) Subject: MooseX::Types::Moose in Cookbook::Style X-Git-Tag: 0_55~67 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c43d0794175f104fde915ff1411d474e302045c;p=gitmo%2FMoose.git MooseX::Types::Moose in Cookbook::Style --- diff --git a/lib/Moose/Cookbook/Style.pod b/lib/Moose/Cookbook/Style.pod index 63fd221..37e4859 100644 --- a/lib/Moose/Cookbook/Style.pod +++ b/lib/Moose/Cookbook/Style.pod @@ -125,12 +125,14 @@ Instead, prefix type name with your project namespace, or class name: Or with L: + use MooseX::Types::Moose qw(Object); + use MooseX::Types ( -declare => [qw(Person)], ); subtype Person() => ( # note parenthesis, "Person" is a function, not a string - as 'Object', + as Object, # MooseX::Types::Moose exported it where { $_->can("name") }, );