On Sat, 4 Oct 2003, [NS]Elgyn wrote:

> Hi everybody,
> I'm trying to make some custom locales and I've been having trouble getting the 
> register method to work. Even using the example code:
>
>   DateTime::Locale->register
>     ( id           => 'en_GB_RIDAS',
>       en_language  => 'English',
>       en_territory => 'United Kingdom',
>       en_variant   => 'Ridas Custom Locale',
>     );
>
> gives me:
>
>   Can't use string ("id") as a HASH ref while "strict refs" in use at 
> /usr/lib/perl5/site_perl/5.8.0/DateTime/Locale.pm line 37.

This is a mistake in the docs.  Register takes an array of hash
references.  It'll be fixed in the next release.

> The documentation also mentions that the id method is required for new
> custom locales, where abouts is id defined for the default locales?

These are all in the DateTime/LocaleCatalog.pm file.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to