Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Checking if your CPAN distributions need to bump their prereq versions (no!)

by Tux (Canon)
on Jun 29, 2017 at 07:16 UTC ( [id://1193805]=note: print w/replies, xml ) Need Help??


in reply to Re: Checking if your CPAN distributions need to bump their prereq versions (no!)
in thread Checking if your CPAN distributions need to bump their prereq versions

In fact you should do BOTH! State the minimum required and state the recommended version. The latter should have been thoroughly tested.

Having a lowest supported and a recommended might have a lot of added value to a module. Say that the newest/hippest module adds a feature that can speed up you code by a factor 10, it is worth supporting that with a fallback to the old code if the newest feature is not available.

You META.yml might then have a section similar to:

requires: perl: 5.008001 DBI: 1.628 DBD::File: 0.42 SQL::Statement: 1.405 Text::CSV_XS: 1.01 recommends: DBI: 1.636 DBD::File: 0.44 SQL::Statement: 1.412 Text::CSV_XS: 1.31 configure_requires: ExtUtils::MakeMaker: 0 DBI: 1.628 build_requires: Config: 0 test_requires: Test::Harness: 0 Test::More: 0.90 Encode: 0 Cwd: 0 charnames: 0 test_recommends: Test::More: 1.302085

Enjoy, Have FUN! H.Merijn
  • Comment on Re^2: Checking if your CPAN distributions need to bump their prereq versions (no!)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1193805]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found