note
armstd
<p>^^ What Dave said, plus the added problem that you lexically (in this case file) scoped $thing with my. You'll want to use 'our' to accomplish what you're trying to do there, which is accessing it from code in a different file. 'our' will allow you to do that, my will not. Both will pass strict. I normally recommend my'ing everything possible, and use methods to access it. Then you're really in control, but slower.
</p>
<code>
my $thing = "thing";
</code>
<p>Changes to:</p>
<code>
our $thing = "thing";
</code>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-901898">
<p>
--Dave
</p>
</div></div>
921811
921811