SyntaxFix
Write A Post
Hire A Developer
Questions
Case Insensitive Substring Example
This is an extension of Eugene's answer, which converts the strings to lower case before checking for the substring:
if (index(lc($str), lc($substr)) != -1) { print "$str contains $substr\n"; }