The variable in the foreach loop should also be properly declared, and preferably not called $a.
for my $pattern (@gen) { my @result = grep/^\Q$pattern\E$/, @sea; push (@final , @result); }
In reply to Re^2: error message txtFile comparison with output in another txtfile
by Fang
in thread error message txtFile comparison with output in another txtfile
by juergenkemeter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |