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

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

Thread Previous | Thread Next
From:
Jim Smith
Date:
November 1, 2001 10:00
Subject:
Re: [PATCH] core-only patch for clamp/readonly hashes
Message ID:
20011101120031.B7057@moya.tamu.edu
On Thu, Nov 01, 2001 at 05:38:10PM +0000, Nick Ing-Simmons wrote:
> Brent Dax <brentdax@cpan.org> 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.

--jim

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About