I think reverse in scalar context is what you want.
A regex might be possible but is unnecessary.my $foo = 'text'; my $oof = reverse $foo; print $oof, $/;
After Compline,
Zaxo
In reply to Re: regex to reverse string
by Zaxo
in thread regex to reverse string
by jai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |