Skip Menu |

This queue is for tickets about the App-pl CPAN distribution.

Report information
The Basics
Id: 133271
Status: new
Priority: 0/
Queue: App-pl

People
Owner: Nobody in particular
Requestors: DBOOK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Versioning for CPAN
Hello, There are a couple issues with the versions for this distribution that could lead to a suboptimal experience. First, CPAN installers and dependency resolution operate on package versions, but the main package in your distribution (App::pl) does not have $VERSION set. The version in the pl script cannot be used for this (in scripts, it's generally only useful for the script reporting its own version to the user), so please also set the version in App::pl. This allows CPAN clients to know when they need to update the module, and allows them to install or depend on specific versions of the distribution, etc. Secondly, the version progression of your releases has not been consistent (PAUSE has not noticed, since your package is unversioned). Unfortunately, due to the historical decimal number version format that Perl modules use, '0.58' and '0.58.0' are not the same version; the latter numifies to '0.058' for comparison (which is a lower version than 0.58). You can read about the details of how this works in my blog post: http://blogs.perl.org/users/grinnz/2018/04/a-guide-to-versions-in-perl.html, but suffice to say as long as you specify your version as a string, and either use two decimal points or a leading 'v', it will be interpreted consistently. I'm happy to help with any questions about this topic, and the IRC channel #perl on irc.freenode.net is another place that can help. -Dan