in reply to Re^2: string diff and compare
in thread string diff and compare
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: string diff and compare
by tobyink (Canon) on May 05, 2012 at 07:17 UTC |