On Thu, Jul 21, 2005 at 11:21:05AM -0600, Luke Palmer wrote:
: On 7/20/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
: > Hi,
: >
: > # Perl 5
: > my %hash = (a => 1, b => 2, a => 3);
: > warn $hash{a}; # 3
: >
: > But I vaguely remember having seen...:
: >
: > # Perl 6
: > my %hash = (a => 1, b => 2, a => 3);
: > say %hash<a>; # 1
: >
: > Can somebody confirm this?
:
: Yes. This is for the case:
:
: foo(a => 1, *%defaults);
:
: So that foo's $a gets one even if it exists in %defaults.
It's likely that the leftmost-wins rule applies only to binding,
not assignment.
Larry