<?xml version="1.0" encoding="windows-1252"?>
<node id="86065" title="Re (tilly) 2: Golf challange: match U.S. State names" created="2001-06-05 23:29:17" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="26179">
tilly</author>
<data>
<field name="doctext">
I think it is the principle of the thing that counts.  How about:
&lt;code&gt;
AK AL AR AZ CA CO CT DC DE FL GA HI IA ID IL IN KS
KT KY LA MA MD ME MI MN MO MS MT NC ND NE NH NJ NM
NV NY OH OK OR PA RI SC SD TN TX UT VA VT WA WI WV
WY
&lt;/code&gt;
And the obvious answer is, of course,
&lt;code&gt;
sub state {
grep$_[0]eq$_,'AKALARAZCACOCTDCDEFLGAHIIAIDILINKSKTKYLAMAMDMEMIMNMOMSMTNCNDNENHNJNMNVNYOHOKORPARISCSDTNTXUTVAVTWAWIWVWY'=~/../g
}
&lt;/code&gt;
at 127 characters.  I don't see an obviously better approach...</field>
<field name="root_node">
86047</field>
<field name="parent_node">
86055</field>
</data>
</node>
