I have written a module which internally changes vastly for different Perl versions, in this case, I have a version of the module for the 5.005_x generation, and a completely different one for 5.6.x. I know I can put the latter module in the subdirectory "
site/lib/5.6.1", and only perl 5.6.1 will pick it up there... but what about 5.6.0, 5.6.2, and (who knows) 5.6.3? Do I really have to place copies under each versioned subdirectory, or is there a way to make an installed module available for all the 5.6.x branches, at once? Is, maybe, this what "
arch" is for?
That would seem like the way to go for XS modules too, as each generation is binary compatible with other versions of the same generation, but not with other generations.
As for a different approach: suppose I make a distribution that only installs the module for the current perl version, how would I have to construct the Makefile.PL?
p.s. In case you're wondering what could be so different between 5.005 and 5.6.x: it's related to UTF-8 support. 5.005 has none whatsoever, while5.6.x provides a reasonable starting point. Not as good as 5.8.x, though...
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.