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?

Alternatively
@$_[ 0, -1] = @$_[ -1, 0] and print "@$_\n" for [ split ' ', $str];
Anno
  • Comment on Re^2: How do I reverse the order of the first and last word of a string?
  • Download Code