<?xml version="1.0" encoding="windows-1252"?>
<node id="928950" title="Re^4: Words in Words" created="2011-09-30 18:43:23" updated="2011-09-30 18:43:23">
<type id="11">
note</type>
<author id="922586">
Lotus1</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;Sorry, but only comparing words with those that come after it alphabetically doesn't work.&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;True, but in the solution I posted I sort by length after the alphabetical sort. The alphabetical sort is probably overkill but needed for this particular solution.&lt;/p&gt;
&lt;c&gt;
chomp (my @words = sort { length($a) &lt;=&gt; length($b) } sort &lt;DATA&gt;);&lt;/c&gt;
</field>
<field name="root_node">
928877</field>
<field name="parent_node">
928934</field>
</data>
</node>
