Perl grep array against array

Hi,
Is there any way I can grep an array against another array?

Basically here's what I need to do.

There will be an array containing some fixed texts and I have to check whether some files contain these lines. Reading the same files over and over again for each different pattern doesnt seem to be the best of ways.
Once a match is found, I need to do some further processing on the line containing the pattern and map it against the pattern found.

Thank You.

Check Perl's grep function. Even if you can't make exact use of it, just seeing what it does should be enough to help you. A simple iteration over your arrays will allow you to do what you want.