<?xml version="1.0" encoding="windows-1252"?>
<node id="968946" title="Re^2: string diff and compare" created="2012-05-04 11:36:08" updated="2012-05-04 11:36:08">
<type id="11">
note</type>
<author id="835768">
raybies</author>
<data>
<field name="doctext">
&lt;p&gt;So I've gone through your example now. I understand everything in it, except... 

&lt;p&gt;&lt;code&gt; my ( $rold, $rnew ) = map scalar reverse, $old, $new; &lt;/code&gt;

&lt;p&gt;What's up with the map scalar reverse syntax? What does the scalar do for example? I mean, I get that you're reversing two strings and putting them  into two new strings, but I am really having difficulty parsing how Perl reads this to do what you've done here. 

&lt;p&gt;Anyone care to explain it, decompress it (for us mortals)?
</field>
<field name="root_node">
968807</field>
<field name="parent_node">
968890</field>
</data>
</node>
