my $string = "bob 299 frank 107 ted 300"; my @array = split /\s+/, $string;