From: Yuval Kogman Date: Mon, 30 Jun 2008 10:08:10 +0000 (+0000) Subject: namespace::clean note X-Git-Tag: 0_55~70 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9fa4da96da2cda64ccfd28024a66ea53e4397f1;hp=23306f77551ce1698ef99faab19881dce6926cae;p=gitmo%2FMoose.git namespace::clean note --- diff --git a/lib/Moose/Cookbook/Style.pod b/lib/Moose/Cookbook/Style.pod index 8129211..b29b4d9 100644 --- a/lib/Moose/Cookbook/Style.pod +++ b/lib/Moose/Cookbook/Style.pod @@ -159,4 +159,16 @@ Will add a coercion to B attributes like: in a specific way. +=head1 Clean up your package + +Use C or C to remove the sugar exports. + +This will make sure the sugar isn't accidentally called as methods on your objects. + +For instance: + + $obj->can("has"); + +will return true, even though C is not a method. +