http://www.perlmonks.org?node_id=1067806


in reply to Re: difference between two files
in thread difference between two files

i tried with this but i'm not getting the required output

#!/usr/bin/perl open (FILE,"file1"); @cnt_file = <FILE>; $cnt = @cnt_file; print "$cnt\n"; open (MYFILE,"file2"); $line = <MYFILE>; foreach $line (<MYFILE>) { print "$line" if $. >= $cnt; }