How do I reverse a string?
Use
reverse
in a scalar context, as documented in
reverse
.
$reversed = reverse $string;
Back to
How do I find matching/nesting anything?
Forward to
How do I expand tabs in a string?
Up to
the perlfaq4 manpage