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 /^[^_]/, keys %hash }
    
would be what? Brevity?

 ----------------------------------------------------------------------
 Eric J. Roode,  [EMAIL PROTECTED]           print  scalar  reverse  sort
 Senior Software Engineer                'tona ', 'reh', 'ekca', 'lre',
 Myxa Corporation                        '.r', 'h ', 'uj', 'p ', 'ts';

Reply via email to