<div class="gmail_quote">On Fri, Jan 30, 2009 at 2:58 PM, Ryan Corder <span dir="ltr">&lt;<a href="mailto:ryanc@greengrey.org">ryanc@greengrey.org</a>&gt;</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&#39;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&#39;s no point in re-inventing badness.<br>
<br>
</div> &nbsp; &nbsp;use version; our $VERSION = qv(&quot;0.1.2&quot;);<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/. &nbsp;I just read<br>
the chapter last night, otherwise I wouldn&#39;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 &#39;best practice&#39;. But Damian has that level of hubris.&nbsp; 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.&nbsp; 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&#39;t be surprised that Perl Best Practices doesn&#39;t mention the problems with <a href="http://version.pm">version.pm</a>, since <a href="http://version.pm">version.pm</a> didn&#39;t exist before the book was written (which is exactly why one shouldn&#39;t declare a &quot;best practice&quot; 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>).&nbsp; A review that gave the module 5 stars still noted:<br>
<br>&quot;Unfortunately, because of the pest that are X.Y.Z versions, <a href="http://version.pm">version.pm</a> by 
definition can&#39;t make comparisons work well in all cases&quot;<br><br>And it isn&#39;t hard to find reports of problems with <a href="http://version.pm">version.pm</a>.&nbsp; It is easy to try to deal with versions in a way that doesn&#39;t work perfectly with <a href="http://version.pm">version.pm</a>.&nbsp; 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>.&nbsp; Which means there is still the risk of running into tools that have such problems.<br>
<br>Please, just say &quot;no&quot; to multi-dot version numbers.<br><br>Tye<br></div></div>