Parse and format CLDR time patterns with Perl