[MT3191] various perl errors in script (merge conflict)