You might need to chomp your input:
chomp(@raw_data, @fileb);
You might need to use quotemeta on your regex:
$testit = quotemeta $_;
Misc advice:
In reply to Re: using grep to search an array
by toolic
in thread using grep to search an array
by alicatserver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |