in reply to error message txtFile comparison with output in another txtfile
use List::Compare; use strict; open (GEN, "general.txt")||die("general.txt File cannot open\n"); open (SEA, "search.txt")||die("search.txt File cannot open\n"); my @gen=<GEN>; my @sea=<SEA>; my @final = (); for $a (@gen) { my @result = grep/^\Q$a\E$/, @sea; push (@final , @result); } open(OUT, ">textCompare3Output.txt")||die("cannot create\n"); print OUT "\nSearch string that matches against general data:\t@final" +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: error message txtFile comparison with output in another txtfile
by Fang (Pilgrim) on Jul 14, 2005 at 22:12 UTC | |
|
Re^2: error message txtFile comparison with output in another txtfile
by juergenkemeter (Novice) on Jul 14, 2005 at 22:20 UTC |