in reply to Re: Effecient shortcut for ?:
in thread Effecient shortcut for ?:

I do this occasionally, when establishing quick defaults. Testing revealed that the last defined key/value pair for a given hash is the one that is used. Is this documented anywhere?
my $self = { %defaults, @_ };

Replies are listed 'Best First'.
Re: Re^2: Effecient shortcut for ?:
by chromatic (Archbishop) on Aug 07, 2002 at 19:22 UTC
    As far as I know, it's only documented in the same sense as this bit of code:
    my $x; $x = 1; $x = 2;