<div class="gmail_quote">On Fri, Jan 30, 2009 at 2:58 PM, Ryan Corder <span dir="ltr"><<a href="mailto:ryanc@greengrey.org">ryanc@greengrey.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Jan 30, 2009 at 02:01:37PM -0800, Joshua ben Jore wrote:<br><br>
<div class="Ih2E3d">| FWIW, you never want to use multi-dot version numbers in perl. It's<br>
| possible and <a href="http://version.pm" target="_blank">version.pm</a> goes to some effort to heal the past but<br>
| there's no point in re-inventing badness.<br>
<br>
</div> use version; our $VERSION = qv("0.1.2");<br>
</blockquote><div>...<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Damian Conway goes into detail on why you need to do it this way and why it<br>
needs to be on one line in chapter 17 of /Perl Best Practices/. I just read<br>
the chapter last night, otherwise I wouldn't be replying to this thread :)</blockquote><div><br>I takes a special level of hubris to write a brand new module and simultaneously loudly declare it to be a 'best practice'. But Damian has that level of hubris. And several of these modules that he produced along with that book have already become official deprecated.<br>
<br>There are problems with <a href="http://version.pm">version.pm</a> and Josh is right to discourage one from using it to make multi-dot version numbers. He even already mentioned <a href="http://version.pm">version.pm</a> and noted that it /tries/ to fix the problems.<br>
<br>One shouldn't be surprised that Perl Best Practices doesn't mention the problems with <a href="http://version.pm">version.pm</a>, since <a href="http://version.pm">version.pm</a> didn't exist before the book was written (which is exactly why one shouldn't declare a "best practice" until enough time and usage has passed for the problems with it to become apparent).<br>
<br>For example, check the reviews of <a href="http://version.pm">version.pm</a> (<a href="http://cpanratings.perl.org/dist/version">http://cpanratings.perl.org/dist/version</a>). A review that gave the module 5 stars still noted:<br>
<br>"Unfortunately, because of the pest that are X.Y.Z versions, <a href="http://version.pm">version.pm</a> by
definition can't make comparisons work well in all cases"<br><br>And it isn't hard to find reports of problems with <a href="http://version.pm">version.pm</a>. It is easy to try to deal with versions in a way that doesn't work perfectly with <a href="http://version.pm">version.pm</a>. Lots of key tools had to be changed in order to properly deal with the versions produced by <a href="http://version.pm">version.pm</a>. Which means there is still the risk of running into tools that have such problems.<br>
<br>Please, just say "no" to multi-dot version numbers.<br><br>Tye<br></div></div>