in reply to One-liners: Conditionals in Loops
perl -le 'print $_ for grep{/pattern/}@arr' [download]
-enlil