Sawyer X > Data-PowerSet-Hash-0.03 > Data::PowerSet::Hash

Download:
Data-PowerSet-Hash-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.03   Source   Latest Release: Data-PowerSet-Hash-0.04

NAME ^

Data::PowerSet::Hash - Power sets of hashes

VERSION ^

version 0.03

DESCRIPTION ^

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.

SUBROUTINES/METHODS ^

hash_powerset

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' },
    #     {},
    # )

EXPORT

hash_powerset(%hash)

See documentation for it above.

SEE ALSO ^

For arrays, you should check out Data::PowerSet or List::PowerSet.

AUTHOR ^

Sawyer X <xsawyerx@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 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.

syntax highlighting: