<?xml version="1.0" encoding="windows-1252"?>
<node id="487321" title="Re^2: Sort - can't" created="2005-08-28 21:36:44" updated="2005-08-28 17:36:44">
<type id="11">
note</type>
<author id="110976">
chas</author>
<data>
<field name="doctext">
&lt;c&gt;"($sub1, $sub2, $sub3) = split (/\_/, @array,3);
$sub3 = sort { $b &lt;=&gt; $a } $sub3;"&lt;/c&gt;&lt;br&gt;
It isn't clear to me what your array is exactly, but in any case, as has been remarked already, $sub3 will be a single
string, and sorting it will have no effect. It isn't clear to me what you want to do or I would have offered more suggestions.&lt;br&gt;
chas&lt;br&gt;
(Update: Actually, what I said is misleading. I *think* the
first line of the code above will take @array in scalar context giving the number of elements, and then $sub1 will
be this value; $sub2 and $sub3 will be empty. The sorting
will do nothing useful, of course. So perhaps you should just ignore my reply above and read the other replies...)

</field>
<field name="root_node">
487299</field>
<field name="parent_node">
487314</field>
</data>
</node>
