in reply to if else statement check an array

This is remarkably similar to searching through array for multiple patterns. What was wrong with the solutions given there?

Replies are listed 'Best First'.
Re^2: if else statement check an array
by sqspat (Acolyte) on Jul 27, 2009 at 09:38 UTC
    that prints a result for each line. I want a result for the checking of the whole array.
      The principle is the same!