in reply to One-liners: Conditionals in Loops

There is also grep (for conditionals):
perl -le 'print $_ for grep{/pattern/}@arr'

-enlil