vroom has asked for the wisdom of the Perl Monks concerning the following question:
Use reverse in scalar context. It just reverses by bytes
or characters. In a list context it will reverse the
elements of a list:
$revstr = reverse($str); # reversed by character $revwords = join(" ", reverse split(/ /, $str));
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom