print /(.*pattern.*)/s for @arr [download]
This would work if @arr had newlines.
In reply to Re: One-liners: Conditionals in Loops by delirium in thread One-liners: Conditionals in Loops by David Caughell