Code :
#!/usr/bin/perl use strict; use warnings; use autodie; my ($xml1, $xml2, $result) =('full1.xml', 'full2.xml', 'result.xml'); my %xml1_lines; open(my $fh, '<', $xml1); while (<$fh> ) { $xml1_lines{$_}++; } open(my $gh, '>', $result); while (<$fh> ) { unless ($xml1_lines{$_}) { } }
|