<?xml version="1.0" encoding="windows-1252"?>
<node id="924494" title="Re: $scalar =&gt; 'WTF?';" created="2011-09-06 20:49:30" updated="2011-09-06 20:49:30">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;/i&gt;&lt;/blockquote&gt;

&lt;P&gt;If you enabled warnings, you should have seen:&lt;code&gt;
Useless use of a constant in void context at ...
&lt;/code&gt;

&lt;p&gt;What you coded is exactly the same as:&lt;code&gt;
my $x, 3;
&lt;/code&gt;

&lt;P&gt;Which in turn is equivalent to:&lt;code&gt;
my $x;
3;
&lt;/code&gt;

&lt;p&gt;You declared but did not initialise &lt;c&gt;$x&lt;/c&gt; and put a constant in a void context.

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
924492</field>
<field name="parent_node">
924492</field>
</data>
</node>
