Subject: | feature request: make it possible to specify $cleanee as an argument... |
It would be really nice if $cleanee could be specified as an argument
rather than always being caller().
What I really want to be able to do is:
package MyApp;
use Moose;
use Moose::Exporter;
Moose::Exporter->setup_import_methods();
sub init_meta {
my $class = shift;
my ( %args ) = @_;
namespace::clean->import(
-cleanee => $args{ 'for_class' },
-except => 'meta',
);
return Moose->init_meta( @_ );
}
Even if this wasn't added to namespace::clean, if $RemoveSubs were
simply made a function, or an 'our' variable, or something that allowed
it to be called externally, then this would be easier than it is now...
--
www.jasonkohles.com