<?xml version="1.0" encoding="windows-1252"?>
<node id="689298" title="Re^2: How scoping works in If statements?" created="2008-05-30 14:17:33" updated="2008-05-30 10:17:33">
<type id="11">
note</type>
<author id="253850">
kwaping</author>
<data>
<field name="doctext">
That still doesn't address the underlying scoping issue, though.
&lt;c&gt;
use strict;
use warnings;

my $x = (0) ? 5 : undef;
my $x = 42;
__END__
"my" variable $x masks earlier declaration in same scope
&lt;/c&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-253850"&gt;
&lt;font size="-1"&gt;&lt;i&gt;
&lt;br&gt;---&lt;br&gt;
It's all fine and dandy until someone has to look at the code.
&lt;/i&gt;&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
689142</field>
<field name="parent_node">
689156</field>
</data>
</node>
