> Well, $hash{/re/} would only evaluate to a single scalar.
   > More likely, you'd want  @hash{/re/}, which would be
   > equivalent to  @hash{ grep { /re/ } keys %hash }.

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.

Damian

Reply via email to