my @arr; while ( ) { next if ($_ =~ /^(\>)/); push @arr, split(/ /, $_); }