<?xml version="1.0" encoding="windows-1252"?>
<node id="89877" title="Re: Very Flexible HTML Template System" created="2001-06-20 00:32:12" updated="2005-08-13 02:04:19">
<type id="11">
note</type>
<author id="82147">
Zaxo</author>
<data>
<field name="doctext">
&lt;p&gt;I think &lt;code&gt;sub ReadFile&lt;/code&gt; should be more portable about line ends:&lt;/p&gt;
&lt;code&gt;sub ReadFile {
    unless (open(INFILE,"&lt; $_[0]")) {return 0;}
    my $readin = join //, map {chomp;$_} &lt;INFILE&gt;;
    close(INFILE);
    $readin;
}
&lt;/code&gt;
&lt;p&gt;I expect there are other spots needing similar treatment&lt;/p&gt;
&lt;p&gt;I was tempted to change your open statement, but it's your code and that would change the interface.&lt;/p&gt;
&lt;p&gt;After Compline,&lt;br/&gt;Zaxo&lt;/p&gt;</field>
<field name="root_node">
89724</field>
<field name="parent_node">
89724</field>
</data>
</node>
