Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Deprecating CPAN modules?

by dgaramond2 (Monk)
on Apr 13, 2007 at 09:10 UTC ( #609855=perlquestion: print w/replies, xml ) Need Help??
dgaramond2 has asked for the wisdom of the Perl Monks concerning the following question:

Is there a mechanism or convention on deprecating my own CPAN module? For example I see that some other author has done an equivalent and better module, and I want to encourage people to use that module instead. Preferably without deleting my module out of existence or even releasing a new version just to say "this module is deprecated".

Replies are listed 'Best First'.
Re: Deprecating CPAN modules?
by DrHyde (Prior) on Apr 13, 2007 at 11:39 UTC
    You'll need to upload a new version, if only to add some text to the docs to say that it's deprecated.

    I would also make the module spit out warnings when used (which the user could turn off) and then remove it from the CPAN after a year or so. It would also be neighbourly to notify any other CPAN authors who have dependencies on your module - you can hunt them down through this page.

Re: Deprecating CPAN modules?
by explorer (Chaplain) on Apr 13, 2007 at 10:05 UTC

    Exists various methods for deprecated

    I see that authors mark modules with (DEPRECATED) front the description line.

      Actually, it needs to be noted in the NAME section of the pod to show up in CPAN search.

      =head1 NAME Foo::Bar - (Deprecated) Use Bam::Baz instead


      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://609855]
Approved by marto
[choroba]: Good morning! I'll be mostly absent today, a day off at work, children have concerts and other activities...
[Corion]: Hi choroba! Yay, day off sounds great! I hope the performances of the kids go well!
[Corion]: I think I'm overdesigning things again. I want to export(later, synchronize) data from Google Keep, by scraping the HTML. And I'm thinking of automating this by having a canary note whose text my program knows and from which it can determine the ...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-12-12 08:49 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (327 votes). Check out past polls.