develooper Front page | perl.perl6.language | Postings from September 2000

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

Thread Previous | Thread Next
From:
Johan Vromans
Date:
September 17, 2000 07:20
Subject:
Re: RFC 179 (v1) More functions from set theory to manipulate arrays
Message ID:
14788.51908.68792.926200@phoenix.squirrel.nl
Tom Christiansen <tchrist@chthon.perl.com> writes:

>     keys %HASH = LIST;
> 
> is really
> 
>     @HASH{ LIST } = ();

Hmm, is it?
I'd expect the first form to set the keys, meaning that the hash will
have _only_ the indicated keys.
The second form will only add the keys, making sure they exist, and
not affect other, already existing keys.
One can wonder what should happen to the values of existing keys.

-- Johan


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