Which part are you having trouble with?
In reply to Re^4: How to make changes in yaml file thorugh perl by moritz in thread How to make changes in yaml file thorugh perl by Anonymous Monk