<?xml version="1.0" encoding="windows-1252"?>
<node id="84488" title="Re: Reading a Line into an Array" created="2001-05-31 07:54:41" updated="2005-07-21 01:27:06">
<type id="11">
note</type>
<author id="74710">
zeidrik</author>
<data>
<field name="doctext">
This works:
&lt;code&gt;
#!/usr/bin/perl -w
use strict;
open(R,"textfile"); my @F=&lt;R&gt;; close(R);
pop @F if (@F[scalar(@F)-1] eq "\n");
print @F;
&lt;/code&gt;

Regards</field>
<field name="root_node">
84474</field>
<field name="parent_node">
84474</field>
</data>
</node>
