my ( $rold, $rnew ) = map scalar reverse, $old, $new;
Is just a different way of saying:
my $rold = reverse $old; my $rnew = reverse $new;
You need to use scalar because reverse is in list context in the map expression.
In reply to Re^3: string diff and compare
by jwkrahn
in thread string diff and compare
by raybies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |