my $string="these are the times that try men's souls"; my @words = split /\s/, $string; # @words now holds "these", "are", "the" ... etc.