open( P, "<", "Two.txt" ) or die "Two.txt: $!"; my @patches = sort
;
chomp @patches;
close P;
my %patch_id;
my $seq_num = 0;
$patch_id{$_} = $seq_num++ for ( @patches );
####
my %comp_patch; # will be a hash of arrays
my $comp_name; # will store most recently seen computer name
open( C, "<", "One.log" ) or die "One.log: $!";
while (##
for my $cname ( sort keys %comp_patch ) {
for my $pnum ( 0 .. $#patches ) {
print "$cname lacks $patches[$pnum]\n"
unless ( defined( $comp_patch{$cname}[$pnum] ));
}
}