Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Swapping two parts of a string

by grep (Monsignor)
on Jul 23, 2007 at 01:50 UTC ( #628168=note: print w/replies, xml ) Need Help??


in reply to Swapping two parts of a string

FWIW a non regex answer
my $input = "(55.950254, -3.187606)"; my $result = '('.join(' ',reverse(split(/[(),]/,$input))).')';

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://628168]
help
Chatterbox?
[choroba]: My average XP per node lowered in the last three months :(
[choroba]: (check my homenode for the graph link and the tool to create it)
[LanX]: blocked by FW :(
oldtechaa takes a cookie from the platter on the sideboard.
[choroba]: LanX Check it on a phone :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-04-26 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (474 votes). Check out past polls.