嗨,我有一个看起来像的数组
@array = ( "city: chicago", "city: Newyork", "city: london", "country: india", "country: england", "country: USA")
我希望数组看起来像:
@array = ("city:", "chichago","Newyork","london","country:","india","england","USA")
谁能帮我弄清楚如何将数组格式化为如下格式。