while(){ chomp; next if $_ eq ''; push @data, $_; }