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
> And the advantage of that over
>
> @hash{ grep /^[^_]/, keys %hash }
>
> would be what? Brevity?
Yes.
Damian
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 /^[^