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)?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: string diff and compare
by Anonymous Monk on May 04, 2012 at 15:54 UTC | |
by Anonymous Monk on May 04, 2012 at 16:13 UTC | |
Re^3: string diff and compare
by jwkrahn (Abbot) on May 04, 2012 at 21:27 UTC | |
by tobyink (Canon) on May 05, 2012 at 07:17 UTC |