Re: proto-RFC: keys(HASH) as lvalue (was Re: RFC 179 )

2000-09-01 Thread John Porter
Bart Lateur wrote: > > If you say > > keys %hash = 200; > > then `%hash' will have at least 200 buckets allocated for > it--256 of them, in fact, since it rounds up to the next power > of two. This should go away, of course. -- John Porter

Re: proto-RFC: keys(HASH) as lvalue (was Re: RFC 179 )

2000-09-01 Thread Bart Lateur
On Fri, 1 Sep 2000 10:23:27 -0400, John Porter wrote: >> keys %HASH = LIST; >> >> is really >> >> @HASH{ LIST } = (); > >Sure. Would you have any great objection to adding the alternative syntax? I have some doubts. See perlfunc -f keys, from which I quote: If you say k

Re: proto-RFC: keys(HASH) as lvalue (was Re: RFC 179 )

2000-09-01 Thread Tom Christiansen
>> keys %HASH = LIST; >> is really >> @HASH{ LIST } = (); >Sure. Would you have any great objection to adding the alternative syntax? Nope. --tom