On Tue, Nov 09, 2010 at 10:25:43AM +0800, jiangys wrote: > Thank you. > > My class as follow: > > package Corporate::Types; > use warnings; > use strict; > use v5.8.5; > use Moose; > use Moose::Util::TypeConstraints; > use Cwd; > use Carp; > ####################### > ......some command...... > ####################### > no Moose; > __PACKAGE__->meta->make_immutable; > 1; > > > When I "use Corporate::Types" in the new pl, there is an error like " Moose > is overwriting an existing method named meta in class Corporate::Types with > a method which returns the class's metaclass. If this is actually what you > want, you should remove the existing method, otherwise, you should rename or > disable this generated method using the '-meta_name' option to 'use Moose'."
Nothing you've shown there is causing that - you'll have to show some more code to figure out what's going on. -doy
