in reply to Re: How do I reverse the order of the first and last word of a string?in thread How do I reverse the order of the first and last word of a string?
@$_[ 0, -1] = @$_[ -1, 0] and print "@$_\n" for [ split ' ', $str]; [download]