while () { chomp; next if /^$/; next if /^[* -]/; print "$_\n"; }