for my $line (@file_content) { my @fields = split /\s+/, $line; push @full_data, \@fields; }