On 4 Aug 2011, at 21:54, Larry Leszczynski wrote:

Thanks for the clarification - I had seen a fair amount of Moose code
that did *not* use namespace::autoclean,

If you say:

package Foo;
use Moose;

... code ...

no Moose;

Then you're also fine..

However if you import stuff from half a dozen modules at the top of your file, then you need to un-import all of them, and adding:

no Moose;
no Foo;
no Bar;
no Baz;

etc is both a pain in the ass, and likely to be error prone.

Using namespace::clean or namespace::autoclean just neatly avoids this.

Cheers
t0m


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to