Allow packages to be cleaned multiple times mirror/master
authorGraham Knop <haarg@haarg.org>
Fri, 24 Oct 2014 19:29:06 +0000 (15:29 -0400)
committerPeter Rabbitson <ribasushi@cpan.org>
Sun, 10 Apr 2016 03:35:28 +0000 (05:35 +0200)
commita6b490abbada8789fcd7dc51b677c48984e8df17
tree74af3c8afb16efe6fe8ed925e4a35b05767739d9
parentdba82a0eb6993472f12db4e7975fa4fdf5afcc66
Allow packages to be cleaned multiple times

Originally the functionality was implmented via Filter::Util::Call, but when
it was removed in [1] the "one per scope" logic remained. Given the reliance
on B::Hooks::EndOfScope none of this is longer required.

[1] https://metacpan.org/diff/file?target=PHAYLON%2Fnamespace-clean-0.07%2Flib%2Fnamespace%2Fclean.pm&source=PHAYLON%2Fnamespace-clean-0.06%2Flib%2Fnamespace%2Fclean.pm
Changes
lib/namespace/clean.pm
t/10-pure-perl.t
t/11-multiclean-in-scope.t [new file with mode: 0644]