my @data1 = grep {chomp; length} <$in1>; #### my @data1 = grep {chomp; $_} <$in1>;