in reply to Re: string diff and compare
in thread string diff and compare
So I've gone through your example now. I understand everything in it, except...
my ( $rold, $rnew ) = map scalar reverse, $old, $new;
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.
Anyone care to explain it, decompress it (for us mortals)?