How do I reverse a string?

Use reverse in a scalar context, as documented in reverse.

    $reversed = reverse $string;