> 0.04   2003-10-03
>
> - The documentation incorrectly showed the DateTime::Locale->register
> method as taking an array, rather than an array of hash references.
> Reported by David Hood.
>

The documentation is still incorrect, using the example given in the
documentation I get:
  Not an ARRAY reference at
/usr/lib/perl5/site_perl/5.8.0/DateTime/Locale.pm line 35.

The arguments need to be contained within an array reference:
 DateTime::Locale->register
     ( [ { id => 'en_GB_RIDAS',
           en_language  => 'English',
           en_territory => 'United Kingdom',
           en_variant   => 'Ridas Custom Locale',
         },
       ],
     );

This seems like a lot of extra work for a single locale, is there a reason
why named arguments aren't allowed when registering only one locale?

>
> The code is identical to 0.03.
>
>
> -dave
>
> /*=======================
> House Absolute Consulting
> www.houseabsolute.com
> =======================*/
>
>
>


Reply via email to