This queue is for tickets about the namespace-clean CPAN distribution.

Report information
The Basics
Id:
41850
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
jasonk [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
(no value)
Fixed in:
(no value)



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
Fixed as suggested in 0.11.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.