<?xml version="1.0" encoding="windows-1252"?>
<node id="994088" title="Re^6: hash to count words" created="2012-09-17 15:52:09" updated="2012-09-17 15:52:09">
<type id="11">
note</type>
<author id="634253">
AnomalousMonk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;
Now that I have that under control...
&lt;/I&gt;&lt;/BLOCKQUOTE&gt;

&lt;p&gt;
If 'that' refers to the lack code tags in your OP, the situation is still out of control. A &lt;c&gt; &lt;code&gt; &lt;/C&gt; tag is closed by a &lt;c&gt; &lt;/code&gt; &lt;/C&gt; tag, not by a &lt;code&gt; &lt;/c&gt; &lt;/CODE&gt; tag. Please see [id://674668]. Please check the effects of your changes.
&lt;/P&gt;

&lt;p&gt;
Printing to a file usually involves supplying an output file handle (see [doc://open]) to the [doc://print] statement. E.g.: &lt;br&gt;
&lt;c&gt;    my $filename = 'file.name';&lt;/c&gt; &lt;br&gt; 
&lt;c&gt;    open my $fh_out, '&gt;', $filename or die "opening '$filename': $!";&lt;/c&gt; &lt;br&gt; 
&lt;c&gt;    my $something_to_output_to_file = your_process();&lt;/c&gt; &lt;br&gt; 
&lt;c&gt;    print $fh_out "here is something for the file \n";&lt;/c&gt; &lt;br&gt; 
&lt;c&gt;    print $fh_out $something_to_output_to_file;&lt;/c&gt; &lt;br&gt; 
&lt;c&gt;    print $fh_out "that's all, folks! \n";&lt;/c&gt; &lt;br&gt; 
&lt;c&gt;    close $fh_out or die "closing '$filename': $!";&lt;/c&gt; &lt;br&gt; 
&lt;/P&gt;

&lt;p&gt;
Please consider re-reading the answers you have been given in this and related threads. Please consider using lexical filehandles (as in the example given above). See also [doc://autodie].
&lt;/P&gt;
</field>
<field name="root_node">
993499</field>
<field name="parent_node">
994031</field>
</data>
</node>
