On Thu, 6 Nov 2003, Rick Measham wrote:

> But the same problem exists ... %parms will contain locale =>
> 'en_AU', so your call to set is now:
>
> $dt3->set( locale=>'en_AU', year=>2003 .. second => 27, time_zone => '-1100',
>             locale=>'latvia'
> );
>
> So which locale gets used?

The second.  It's entirely, deterministic, because it's being assigned in
order to a hash, so last instance of a key always wins.  In fact, that's
perfectly valid Perl style, something like:

 my %params_to_use = ( %defaults, %user_overrides );


-dave

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

Reply via email to