develooper Front page | perl.perl5.porters | Postings from February 2013

key/value hash slice feature

Thread Next
From:
Ruslan Zakirov
Date:
February 27, 2013 15:57
Subject:
key/value hash slice feature
Message ID:
CAMOxC8vRqYxUOgxqfPyQcROnUKjNCtgjU5ozvUoZPWYJ=PKT=g@mail.gmail.com
Hi,

I've implemented a new variant to slice hashes that returns keys and
values, so I can do:

$o->foo( %h{qw(allowed list of arguments)} );

And other nice things. Would love to see it in core at some point.
Tests and documentation are missing at this moment.

https://github.com/ruz/perl5/tree/ruz/kvhslice-op

-- 
Best regards, Ruslan.

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