<?xml version="1.0" encoding="windows-1252"?>
<node id="941748" title="Re: Can't Write to Files properly" created="2011-12-04 13:51:03" updated="2011-12-04 13:51:03">
<type id="11">
note</type>
<author id="258724">
Not_a_Number</author>
<data>
<field name="doctext">
&lt;p&gt;Where to start?&lt;/p&gt;
&lt;p&gt;Well, the first red flag is that you comment out &lt;c&gt;use strict;&lt;/c&gt; towards the top of your script...&lt;/p&gt;
&lt;p&gt;Scrolling down to the bottom, your last three subs try to use a non-existent global &lt;c&gt;@LINE&lt;/c&gt; array, a problem which of course strictures would have identified.&lt;/p&gt;
&lt;p&gt;My advice: go to bed, get a good night's sleep (and try not to dream of Perl...) :)&lt;/p&gt;
&lt;p&gt;And tomorrow, after uncommenting &lt;c&gt;use strict;&lt;/c&gt; and adding &lt;c&gt;use warnings;&lt;/c&gt;, work through your code until you've fixed all the errors thereby revealed.&lt;/p&gt;
&lt;p&gt;Then, if it still doesn't work, remove everything from your test code that has no relevance to the problem at hand (particularly, but not exclusively, the 170+ lines in &lt;c&gt;sub MakeHTML&lt;/c&gt;), after which we might be willing to debug any remaining errors.&lt;/p&gt;</field>
<field name="root_node">
941732</field>
<field name="parent_node">
941732</field>
</data>
</node>
