Help for this page

Select Code to Download


  1. or download this
    open( P, "<", "Two.txt" ) or die "Two.txt: $!";
    my @patches = sort <P>;
    ...
    my $seq_num = 0;
    $patch_id{$_} = $seq_num++ for ( @patches );
    
  2. or download this
    my %comp_patch;  # will be a hash of arrays
    my $comp_name;   # will store most recently seen computer name
    ...
            $comp_name = $_;
        }
    }
    
  3. or download this
    for my $cname ( sort keys %comp_patch ) {
        for my $pnum ( 0 .. $#patches ) {
    ...
                unless ( defined( $comp_patch{$cname}[$pnum] ));
        }
    }