I am looking for some help on something that is likely fairly obvious. I want to match two variables in order for my program to progress. The first match is simple, just matching a form type. The second match is what is confusing me. I am trying to ensure that a given variable is in an array. My current statement looks like this:
if($form_type=~/$formget/i && $cik~~@ciks)
This code will not parse through my array and return matches. Any suggestions? I am sure that this is largely just a syntax thing but I am stumped. Thanks!
UPDATE: Thank you all for your kindness and fast responses! I was able to figure this out by just looping through my @ciks array - this is probably somewhat inefficient, but the array only has about 300 elements, so it is not too big of a deal.