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, $/; [download]
After Compline,Zaxo