in reply to Substring comparison

For plain substring searching, maybe index is enough for you?

As you don't show any code, it's hard to tell, but your original approach of $list1[0] =~ /$list2[0]/ should work as intended. You don't show any code, so it's hard to tell where you went wrong.