On Wed, 6 Sep 2000 22:58:05 -0400, John Porter wrote:
> keys %hash = @things;
>
>is defined as being equivalent to
>
> @hash{ @things } = ();
Two more details to think about:
%hash = ( b => 'beta', d => 'delta' );
keys %hash = qw(a b c);
What happens to the values that were in %hash before? IMO, 'd' would be
removed, because it's not in the hash keys any more; but 'b'? Should
it's value be wiped, or remain what it was? I think it should be
preserved.
--
Bart.
Thread Previous
|
Thread Next