open(FILE, "<", "numb.txt" ) || die "Unable to open numb.txt <$!>\n";
while ( <FILE> ) {
chomp;
$fileHash{$_} = $i++;
}
close(FILE);
open(FILE, "<", "num.txt" ) || die "Unable to open num.txt<$!>\n";
while( <FILE> ) {
chomp;
if( exists $fileHash{$_} ) {
}
else {
print "$_\n";
}
}
close(FILE);
Hi all, kindly assist me with the above code so that the selected string is added of written (output) to the second file being opened in this script.
Thanks.