in reply to Re: compare two text files
in thread compare two text files

Hi! It all works fine, thank you. Next time I will post my "trying code" with my thread. In case of homework: I ordered the book "Learning Perl" today. One last question occured to me though: is there a way to put the output into a new textfile? Thanks a lot for your fast help, Jurgen

Replies are listed 'Best First'.
Re^3: compare two text files
by Samy_rio (Vicar) on Jul 14, 2005 at 05:50 UTC


    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.

    Velusamy R.