develooper Front page | perl.perl6.language | Postings from August 2000

Re: Nice to have it

Thread Next
From:
Eric Roode
Date:
August 28, 2000 11:46
Subject:
Re: Nice to have it
Message ID:
200008281846.OAA21028@verne.myxa.com
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,  eric@myxa.com           print  scalar  reverse  sort
 Senior Software Engineer                'tona ', 'reh', 'ekca', 'lre',
 Myxa Corporation                        '.r', 'h ', 'uj', 'p ', 'ts';


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About