my @fields; while () { chomp; push @fields, split /\t/; } # @fields is still in scope