How can I check whether a given string contains a certain substring, using Perl?
More specifically, I want to see whether s1.domain.com
is present in the given string variable.
转载于:https://stackoverflow.com/questions/7283274/check-whether-a-string-contains-a-substring