Answers for "Perl search if variable contains word"

0

Perl search if variable contains word

if (index($str, $substr) != -1) {
    print "$str contains $substr\n";
}
Posted by: Guest on August-11-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language