in reply to How to create and install a module compatible with both UTF8 and Perl 5.8.3 without using non-core modules?
I don't want to require the installation of non-core modules. If there is not a better way to do this, my next version release will abandon all of those useful tests
You could pull this off with a little monkey patching and finagling but I think you're getting lost in the weeds again... Why on Earth would you avoid a module that has been in the perl core for almost eight years or make your test suite less complete for the arbitrary goal of supporting perl versions that are statistically irrelevant in 2023? Who are you targeting that stopped installing new versions of the interpreter 19 years and 11 months ago with v5.8.3? And if this person exists, why would they avoid updating perl itself-- ignoring two decades of improvements, security fixes, and features --only to install your brand new non-battle-hardened module tomorrow?
And if a module was non-core 8 years ago (or even today), so what? Your module is non-core. You put that code on CPAN because it serves a practical purpose and you want your work to be found, installed, used, and potentially improved upon by others; not avoided or ignored because it's not a core module. The CPAN itself wouldn't make much sense if we all avoided using each other's non-core modules. Besides, worrying that someone doesn't have a module "new" to the core or an entirely non-core module (or even a given version of a core or non-core module) pre-installed is a problem resolved long ago: properly define your prerequisites in metadata and, better yet, in a cpanfile.
Finally, the very first line of Test::More reads "STOP! If you're just getting started writing tests, have a look at Test2::Suite first." Emphasis is theirs. I'd take the advice because Test2 is where the effort is going today and in the future.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to create and install a module compatible with both UTF8 and Perl 5.8.3 without using non-core modules?
by Polyglot (Chaplain) on Dec 03, 2023 at 01:17 UTC | |
by SankoR (Prior) on Dec 03, 2023 at 05:14 UTC | |
by Polyglot (Chaplain) on Dec 03, 2023 at 07:02 UTC | |
by hv (Prior) on Dec 03, 2023 at 14:33 UTC | |
by Polyglot (Chaplain) on Dec 03, 2023 at 15:04 UTC | |
|