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.
- RFC 196 (v1) More direct syntax for hashes Perl6 RFC Librarian
- Re: RFC 196 (v1) More direct syntax for hashes John Porter
- Re: RFC 196 (v1) More direct syntax for hashe... Bart Lateur
- Re: RFC 196 (v1) More direct syntax for hashe... Bart Lateur
- Re: RFC 196 (v1) More direct syntax for hashes Michael G Schwern
- Re: RFC 196 (v1) More direct syntax for hashe... Nathan Torkington
- Re: RFC 196 (v1) More direct syntax for h... Michael G Schwern
- Re: RFC 196 (v1) More direct syntax f... Nathan Torkington
- Re: RFC 196 (v1) More direct syntax for hashe... Bart Lateur
- Re: RFC 196 (v1) More direct syntax for hashe... Dave Storrs
