How do I reverse a string?
Use reverse() in scalar context, as documented in
perlfunc/reverse
.
$reversed = reverse $string;
Back to
perlfaq4