Hi,

open(OUT, ">new.txt")||die("cannot create\n"); print OUT "\nExtra Text present in the second File\n", $lcma->get_comp +lement ,"\n"; print OUT "\nExtra Text present in the First File\n", $lcma->get_uniqu +e ,"\n";

You just replace the last two line of my code with the above code.

Regards,
Velusamy R.


In reply to Re^3: compare two text files by Samy_rio
in thread compare two text files by juergenkemeter

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":