in reply to Grep lines from a text file, compare to an array using regex?

You can convert it to a problem you already know how to solve by just creating one large regular expression from all the lines you want to search for.
my $pattern = join '|', map quotemeta, @lines; $pattern = qr/^(?:$pattern)$/;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ