in reply to Unmatched right curly bracket

One word: perltidy

HTH,

planetscape