Re: Nice to have it

2000-08-28 Thread Bart Lateur
On Mon, 28 Aug 2000 14:43:08 -0400 (EDT), Eric Roode wrote: >Damian Conway wrote: > >> @hash{grep /^[^_]/} >> >>gives you the public values of %hash. > > >And the advantage of that over > >@hash{ grep /^[^_]/, keys %hash } > >would be what? Brevity? What if I want those keys of %has

Re: Nice to have it

2000-08-28 Thread Damian Conway
> And the advantage of that over > > @hash{ grep /^[^_]/, keys %hash } > > would be what? Brevity? Yes. Damian

Re: Nice to have it

2000-08-28 Thread Eric Roode
Damian Conway wrote: >I have a draft RFC that proposes that the LIST argument of a >grep be optional in a hash slice, and default to the key list >of the sliced hash. So: > > @hash{grep /^[^_]/} > >gives you the public values of %hash. And the advantage of that over @hash{ grep /^[^