<?xml version="1.0" encoding="windows-1252"?>
<node id="1016856" title="Re: compare two strings and return only he unique values." created="2013-02-03 15:22:48" updated="2013-02-03 15:22:48">
<type id="11">
note</type>
<author id="258724">
Not_a_Number</author>
<data>
<field name="doctext">
&lt;p&gt;Yet another (short) way:&lt;/p&gt;
&lt;c&gt;my ( $str1, $str2 )  = ( 'ABCDE', 'BCDEO' );

my %count;
$count{$_}++ for split //, $str1.$str2;

print grep $count{$_} == 1, keys %count;&lt;/c&gt;</field>
<field name="root_node">
1016850</field>
<field name="parent_node">
1016850</field>
</data>
</node>
