$str = 'hacker. Perl another Just'; ($revwords = $str) =~ s/(\S+)/reverse $1/ge; $revwords = reverse $revwords
In reply to Re: How do I reverse a string or the words in a string?
by ariels
in thread How do I reverse a string or the words in a string?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |