Data::PowerSet::Hash - Power sets of hashes
version 0.04
This provides you with a power set (basically all combinational iterations) for your hashes. This only does it for hashes, if you want them done for arrays, I suggest using Data::PowerSet. Please view the SEE ALSO section below.
Create a powerset from hash keys.
use Data::PowerSet::Hash 'hash_powerset'; my @pset = hash_powerset( husband => 'Homer Simpson', wife => 'Marge Simpson', ); # @pset = ( # { # husband => 'Homer Simpson', # wife => 'Marge Simpson', # }, # { husband => 'Homer Simpson' }, # { wife => 'Marge Simpson' }, # {}, # )
See documentation for it above.
For arrays, you should check out Data::PowerSet or List::PowerSet.
Sawyer X <xsawyerx@cpan.org>
Mirela Iclodean <imirela@cpan.org>
This software is copyright (c) 2013 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::PowerSet::Hash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::PowerSet::Hash
CPAN shell
perl -MCPAN -e shell install Data::PowerSet::Hash
For more information on module installation, please visit the detailed CPAN module installation guide.