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

key/value hash slice feature

Thread Next
Ruslan Zakirov
February 27, 2013 15:57
key/value hash slice feature
Message ID:

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.

Best regards, Ruslan.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About