What would be a best practice for someone like myself who wants to roll distros on both linux and win32?
I was surprised that Writing Solid CPAN Modules doesn't offer any advice to CPAN authors on this topic, so I need to update it.
I've always assumed that if the text files (e.g. .pl and .pm files) in your uploaded CPAN tarball
are Unix LF-terminated, they'll work fine on all modern Perl platforms (including Windows and MacOS).
But I couldn't find a definitive reference on this topic ...
so if anyone knows of any cool references on this topic, please let us know.
Update: I've made a minor tweak to the Mechanics of Creating a New CPAN Module section at Writing Solid CPAN Modules, shown below.
Mechanics of Creating a New CPAN Module
Start with: Re: What do I use to release a module to CPAN for the first time? by davido.
Note: if performing point 2 (Generate your distribution framework) from davido's reference by hand (rather than using Module::Starter):
- Ensure the text files in your distribution are Unix LF-terminated (not Windows CRLF-terminated).
- If packaging commands, use #!/usr/bin/perl as their first line, which gets rewritten to point to the correct perl by the installer, as noted by ikegami here.
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.