while (<>) { chomp; my @a; @a = split if !/^==/; print "@a\n"; } #### while (<>) { chomp; next if /^==/; my @a = split; print "@a\n"; }