my $input = "(55.950254, -3.187606)"; my $result = '('.join(' ',reverse(split(/[(),]/,$input))).')';
In reply to Re: Swapping two parts of a string
by grep
in thread Swapping two parts of a string
by Harch84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |