in reply to Re: Read two files and print
in thread Read two files and print
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"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read two files and print
by velusamy (Monk) on Feb 26, 2009 at 04:27 UTC | |
by GrandFather (Saint) on Feb 26, 2009 at 04:34 UTC |