View Problem

Reverse the words in a string

Given the string "This is a end, my only friend!", produce the string "friend! only my end, the is This"
ExpandDiskEdit
ruby
reversed = text.split.reverse.join(' ')

Submit a new solution for ruby
There are 26 other solutions in additional languages (clojure, cpp, csharp, erlang ...)