I'm trying to setup a check to see if any of multiple strings exist within a scalar. Essentially if ($string =~ /string1|string2|string3|string4/)
I am trying to find a way to figure out what matches occur. For example, if $string contains both string1 and string4 I need to know that both matches occur.
My guess is there is a much much better way to handle this. Especially since I can't seem to figure out how to make it work this way.
Any suggestions would be appreciated.