<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Perl version number puzzles</title>
	<atom:link href="http://www.dagolden.com/index.php/204/perl-version-number-puzzles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagolden.com/index.php/204/perl-version-number-puzzles/</link>
	<description>Whatever comes to mind</description>
	<lastBuildDate>Thu, 09 Sep 2010 12:01:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: david</title>
		<link>http://www.dagolden.com/index.php/204/perl-version-number-puzzles/comment-page-1/#comment-236</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sun, 19 Jul 2009 14:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagolden.com/?p=204#comment-236</guid>
		<description>Since it&#039;s been over a month with no one guessing, and since rafl on #corehackers asked to see the answers, here they are:

&lt;strong&gt;Puzzle #1: our $VERSION = v0.1.1;&lt;/strong&gt;

Note that for Perl 5.8.9, you need to hope that any users don&#039;t try to use() your module with a numeric conversion, the way they have been taught to do for perl.  I.e. &quot;use 5.006002&quot; instead of &quot;use v5.6.2&quot;.

&lt;strong&gt;Puzzle #2: use version; our $VERSION = version-&gt;new(v0.0_1)&lt;/strong&gt;

&lt;strong&gt;Puzzle #3: use version; our $VERSION = version-&gt;new(&quot;v0.0_1&quot;);&lt;/strong&gt;

Note the only difference between these two is whether the v0.0_1 is in quotes in the call to new().

&lt;strong&gt;Puzzle #4: our $VERSION = &quot;0.001001&quot;;&lt;/strong&gt;

Sort of a trick question, but note that perl 5.10 reports &quot;this is v0.1.1&quot; which isn&#039;t actually what is in $VERSION.</description>
		<content:encoded><![CDATA[<p>Since it's been over a month with no one guessing, and since rafl on #corehackers asked to see the answers, here they are:</p>
<p><strong>Puzzle #1: our $VERSION = v0.1.1;</strong></p>
<p>Note that for Perl 5.8.9, you need to hope that any users don't try to use() your module with a numeric conversion, the way they have been taught to do for perl.  I.e. "use 5.006002" instead of "use v5.6.2".</p>
<p><strong>Puzzle #2: use version; our $VERSION = version-&gt;new(v0.0_1)</strong></p>
<p><strong>Puzzle #3: use version; our $VERSION = version-&gt;new("v0.0_1");</strong></p>
<p>Note the only difference between these two is whether the v0.0_1 is in quotes in the call to new().</p>
<p><strong>Puzzle #4: our $VERSION = "0.001001";</strong></p>
<p>Sort of a trick question, but note that perl 5.10 reports "this is v0.1.1" which isn't actually what is in $VERSION.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
