It seems that the strings in @searchTerms still have trailing newline characters, so if you search for them, you'll only find them at the end of the line.
chomp can help you here.
In reply to Re: String Comparison Issue
by moritz
in thread String Comparison Issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |