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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: difference between two files
by roboticus (Chancellor) on Dec 19, 2013 at 11:15 UTC | |
|
Re^3: difference between two files
by marto (Cardinal) on Dec 19, 2013 at 11:05 UTC | |
by educated_foo (Vicar) on Dec 19, 2013 at 13:51 UTC | |
by marto (Cardinal) on Dec 19, 2013 at 14:18 UTC | |
by educated_foo (Vicar) on Dec 20, 2013 at 02:12 UTC | |
by marto (Cardinal) on Dec 20, 2013 at 12:34 UTC |