Loop Through Input With -n

LINE:
  while (<>) {
      ...             # your program goes here
  }
perl -ne '/conf/ && print'
perl -ne 'next unless /conf/; print'