perl - comparar dos archivos
AUTOR PREGUNTA #1
-
¿Tienes la misma pregunta? Yo también
Esto también te interesa!
PREGUNTAS SIMILARES
#2
use strict;
use warnings;
my ($n, %d) = (1);
while (<>){ $d{$_} += $n; $n *= -1 if eof; }
my @mismo_archivos = grep { $d{$_} == 0 } keys %d;
my @dif_archivo1 = grep { $d{$_} > 0 } keys %d;
my @dif_archivo2 = grep { $d{$_} < 0 } keys %d;
my $files_differ = 1 if grep $_, values %d;