I tried something like this. But split doesnot works here. How can I check <FILE2> with second column of text1.txtopen(FILE1, 'text1.txt'); open(FILE2, 'text2.txt'); while ($line = <FILE1>) { @lines=split("\t",$line); print $lines[1]; if($lines[1] != <FILE2>){ # print "$line"; } }
In reply to Re^2: Read two files and print
by sandy1028
in thread Read two files and print
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |