This function requires you to log in. Please enter your login details

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"
DiskEdit
perl
$reversed = join ' ', reverse split / /, $text;

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