Skip Menu |

This queue is for tickets about the Module-Rename CPAN distribution.

Report information
The Basics
Id: 12034
Status: resolved
Priority: 0/
Queue: Module-Rename

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

Bug Information
Severity: Wishlist
Broken in: 0.01
Fixed in: (no value)



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.