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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|