I recently released Date::Manip 6.xx which requires perl 5.10 (Date::Manip 5.xx works fine on perl 5.6 and probably earlier versions). NOTE: I'm still supporting the 5.xx releases for users who don't have perl 5.10 .

The problem is that now the automatic installers are failing. If you try to upgrade Date::Manip and you're running perl 5.6/5.8, it'll try the newest version which will fail, and it'll report that it couldn't install Date::Manip. Of course, you can manually specify to use the newest of the 5.xx releases, and that works fine, but I'd like to fix this problem in a better way.

I'm not interested in renaming the module to Date::Manip6 (or some other variation), but I'm considering packaging both the 5.xx and 6.xx releases in the 6.xx package and then fixing the Makefile.PL/Build.PL to install the correct one based on the perl version.

Is this a valid/good/poor/unacceptable solution to the problem? Will it solve one problem only to create another? If there's a better way to solve the problem please let me know. NOTE: backing out the changes that require 5.10 isn't an option that I'm willing to consider.

I'm not 100% sure how to do it, but I'm sure it won't be hard to figure it out, but if there's already a module out there that does this, I'd be interested in a note so that I can see an example of it already being done.

Thanks


In reply to Installing a module that is perl-version specific by SBECK

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.