But i still have some error.e.g. it shows 2 outputs for some stringsfor my $pattern (@array2) { my @results = grep /$pattern/, @array1; print "$pattern is in @results\n"; }
Still i didnt get what could be the problem.abc_RCF_BM_allocation_0_kl contains BM_allocation_0 abc_RCF_BM_allocation_0_kl contains RCF_BM_allocation_0 aplc_RCF_BM_allocation_0_in_nml contains RCF_BM_allocation_0_in aplc_RCF_BM_allocation_0_in_nml contains BM_allocation_0
In reply to Re^2: check 2 string arrays
by sharan
in thread check 2 string arrays
by sharan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |