<?xml version="1.0" encoding="windows-1252"?>
<node id="313921" title="Re: Less-than-helpful warnings" created="2003-12-10 18:44:12" updated="2005-08-10 11:52:19">
<type id="11">
note</type>
<author id="310438">
Sandy</author>
<data>
<field name="doctext">
Ditto with all the rest of the replies, except... some strange behaviour.  &lt;br&gt;
Note that if your undefined variable is 1st in the string, no warning message.&lt;p&gt;
The second print statement does &lt;i&gt;not&lt;/i&gt; print a warning.&lt;br&gt;
Mmmm....
&lt;code&gt;
#!/usr/bin/perl -w

my $a = 1;
my $b = 2;
my $c = 3;
my $d = 4;
my $e;

print "$a $b $c $d $e\n";
print "$e $a $b $c $d\n";
&lt;/code&gt;
My guess is that it is the concatenation of a 'null' that causes the warning.  
&lt;p&gt;&lt;code&gt;"$a $b"&lt;/code&gt; is optimized to &lt;code&gt;$a." ".$b&lt;/code&gt; according to the message I get when I use the 'use diagnostics' with this code.</field>
<field name="root_node">
313774</field>
<field name="parent_node">
313774</field>
</data>
</node>
