> 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
- Nice to have'it raptor
- Re: Nice to have'it David Corbin
- Re: Nice to have'it John Porter
- Re: Nice to have'it Damian Conway
- Re: Nice to have'it John Porter
- Re: Nice to have'it Ed Mills