$line=~s!\(([1-9]{1,3}((, |\\p=n-\\)[1-9]{1,3})*)\)!\(@{[map"$_",split"(, |\\p=n-\\)",$1]}\)!g;