in reply to regex to reverse string

I think reverse in scalar context is what you want.

my $foo = 'text'; my $oof = reverse $foo; print $oof, $/;
A regex might be possible but is unnecessary.

After Compline,
Zaxo