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.
In reply to Re: Substring comparison
by Corion
in thread Substring comparison
by schtinkfist893
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |