in reply to Re^4: error message txtFile comparison with output in another txtfile
in thread error message txtFile comparison with output in another txtfile
In a word: chomp. Also, I think you really want to search general.txt for the match text (one per line) from search.txt, so the for loop becomes something like:
for $a (@sea) { chomp $a; @result = grep /\Q$a\E/, @gen; push (@final , @result); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: error message txtFile comparison with output in another txtfile
by juergenkemeter (Novice) on Jul 15, 2005 at 02:20 UTC |