develooper Front page | perl.perl5.porters | Postings from November 2001

Re: [PATCH] core-only patch for clamp/readonly hashes

Thread Previous | Thread Next
Jim Smith
November 1, 2001 10:00
Re: [PATCH] core-only patch for clamp/readonly hashes
Message ID:
On Thu, Nov 01, 2001 at 05:38:10PM +0000, Nick Ing-Simmons wrote:
> Brent Dax <> writes:
> >construct C<@hash{keys %otherhash}=values %otherhash>?
> That is fine if it is written as
>              %hash = %otherhash;

But these are not equivalent.  The second replaces all information in %hash
while the first only replaces the values in %hash for those keys in
%otherhash that have not been deleted.  We don't know that both hashes have
the same set of keys.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About