First I think you may need to change line #36 to use the operator 'eq' instead of '==', the latter of which is used only for numbers. So maybe instead something like this when dealing with strings...
if ( $_ eq "$searchString1" && $_ eq "$searchString2" && $_ eq "$searc +hString3" )
I'm not familiar with using logical && within a regular expression. I don't think it is supported unless on the eval side of a substitution. You might re-write your regular expression like this on line 37
if ( /[945850]/gm && /[945851]/gm && /[945852]/gm )
However there looks like there may be other errors in your code causing this to fail. Let me look at it some more and write up something.
In reply to Re: Search an array for array of strings
by andmott
in thread Search an array for array of strings
by perlnewbie9292
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |