Skip Menu |
 

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

Report information
The Basics
Id: 41850
Status: resolved
Priority: 0/
Queue: namespace-clean

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

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: feature request: make it possible to specify $cleanee as an argument...
Download (untitled) / with headers
text/plain 679b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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