<?xml version="1.0" encoding="windows-1252"?>
<node id="351503" title="Re: spliting new lines and spaces" created="2004-05-07 11:57:01" updated="2005-06-21 06:01:11">
<type id="11">
note</type>
<author id="99151">
krusty</author>
<data>
<field name="doctext">
The sample code you have given only contains one element in the array.  Is that what you really meant?&lt;BR&gt;
&lt;BR&gt;
The following code should work to get rid of any whitespace characters (tab, newline, form feed, literal space, carraige return) in the elements of your array:&lt;BR&gt;
&lt;CODE&gt;
foreach (@test){
   s/\s+//g;
}
&lt;/CODE&gt;
Good luck,&lt;BR&gt;
Kris

</field>
<field name="root_node">
351497</field>
<field name="parent_node">
351497</field>
</data>
</node>
