in reply to Re^2: 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?

Actually the void context map that gives blazar goose bumps below fixes that problem. As blazar suggests, a translate (y/\0//d for @words;) would be cleaner however.


DWIM is Perl's answer to Gödel
  • Comment on Re^3: How do I reverse the order of the first and last word of a string?
  • Download Code