<?xml version="1.0" encoding="windows-1252"?>
<node id="932466" title="Re: Storing simple Value Pairs" created="2011-10-19 14:44:08" updated="2011-10-19 14:44:08">
<type id="11">
note</type>
<author id="920017">
pvaldes</author>
<data>
<field name="doctext">
&lt;p&gt;what about a simple list? i.e.:&lt;/p&gt;

&lt;c&gt; my @list = ('23/34', '34/56', '45/01');&lt;/c&gt;

&lt;p&gt;is trivial to convert this to the original pair with split, sort the list, etc&lt;/p&gt;

&lt;c&gt;foreach $pair(@list){
my ($x,$y) = split /\//, $pair, 2;
print $y," is paired with ", $x, "\n";
} 

__END__
34 is paired with 23
56 is paired with 34
01 is paired with 45

&lt;/c&gt;</field>
<field name="root_node">
932460</field>
<field name="parent_node">
932460</field>
</data>
</node>
