Subject: | [FEATURE] Deprecate module name |
If a module has had a bit of history in CPAN, it may make sense to Deprecate the module name. If the option is enabled, you'd keep Cool/Frobnicator.pm as something like:
package Cool::Frobnicator;
use base 'Util::Frobnicator';
use strict; # make CPANTS and Test::Strict happy
# Insert a warning comment about including a version number which
# is newer than existing version on CPAN. Ideally you could do this
# yourself, but it involves dealing with 'use vars' vs. 'our'
# issues, which could get messy.
BEGIN {
warn "Cool::Frobniactor is deprecated: use Util::Frobnicator";
}
I've already done this for Algorothm::SkipList (a stub List::SkipList is included).
One should also include tests that use the old module and generate a warning (if Test::Warn is available). But again, that's a bit of work.