Anno@$_[ 0, -1] = @$_[ -1, 0] and print "@$_\n" for [ split ' ', $str];
In reply to Re^2: How do I reverse the order of the first and last word of a string?
by Anno
in thread How do I reverse the order of the first and last word of a string?
by ferrispike12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |