[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Copying hashes



In article <20000131121709.A31100@pimlott.ne.mediaone.net>,
Andrew Pimlott <andrew@pimlott.ne.mediaone.net> wrote:
>People have discussed allowing
>
>push %$self, %$r;  # keys in %$r override keys in %$self
>
>or
>
>unshift %$self, %$r;  # keys in %$self override keys in %$r
>
>I like it.

AFAIR, when this last came up on cplmoderated, the consensus was that
it would be better for perl to recognize "%hash = %hash, LIST" and
optimize it than to introduce new syntax.  Someone did come up with
a patch to implement the push thing, though.

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe