open(File, "file.txt"); while($text = ){ @words = split(' ', $text); for $word(@words){ print "$word\n"}};