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

Re^2: Is there a better way to get the Country names with help of Regax

by tobyink (Abbot)
on Oct 16, 2012 at 05:57 UTC ( #999228=note: print w/replies, xml ) Need Help??


in reply to Re: Is there a better way to get the Country names with help of Regax
in thread Is there a better way to get the Country names with help of Regax

It would be good to see more sample input to figure out how countries with spaces in their names should be dealt with. North Korea, Vatican City, South Sudan, Timor Leste, Papua New Guinea, etc...

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^2: Is there a better way to get the Country names with help of Regax

Replies are listed 'Best First'.
Re^3: Is there a better way to get the Country names with help of Regax
by Anonymous Monk on Oct 16, 2012 at 07:19 UTC

    Thanks Toby...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999228]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-11-18 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?