... print "Type a series of words, separated by spaces, ending with a return:\n"; my $words = ; chomp $words; my @words = split (/ /, $words); ...