in reply to One-liners: Conditionals in Loops

print /(.*pattern.*)/s for @arr

This would work if @arr had newlines.