こんにちは、次のような配列があります
@array = ( "city: chicago", "city: Newyork", "city: london", "country: india", "country: england", "country: USA")
配列を次のようにしたい:
@array = ("city:", "chichago","Newyork","london","country:","india","england","USA")
配列を次の形式のようにフォーマットする方法を教えてください。