Jan 22, 2007, 9:43 PM
This is the code i had .
Re: [KevinR] pattern mathc in .jar file
open (FILE3,"A") || die "can't open the file filename : $!\n";
open (FILE4,"B") || die "can't open the file : $!\n";
open (FILE5,">>list") || die "can't create file list : $! \n";
print("$_ content of file list \n");
while(my $test1 = <FILE4>)
print "$test1 \n";
if($test1 =~m /$_/)
print "Matched line is $test1 \n ";
This code is printing only the first matched line from file A and B, not all. At present i have only this much of code. Any sugesstion to implement the whole requirement are welcome.
(This post was edited by sandeepsirsgi on Jan 22, 2007, 9:43 PM)