PogoIndex - Alternate hash class which can have plural values
use PogoIndex; $index = new PogoIndex::Btree; $index->add('key', 'value1'); $index->add('key', 'value2'); @values = $index->getlist('key'); # gets ('value1', 'value2')
By the Pogo's hash data structures (Pogo::Hash, Pogo::Htree, Pogo::Btree, Pogo::Ntree), each key may have only one value. This module provides multi-value available hash.
This class method makes and returns a PogoIndex::Hash object. It's substance is a hash reference which is tied to a Pogo::Hash object. $size specifies the size of hash entry table. $size can default.
Same as PogoIndex::Hash->new, but using Pogo::Htree.
Same as PogoIndex::Hash->new, but using Pogo::Btree.
Same as PogoIndex::Hash->new, but using Pogo::Ntree.
This object method adds the value $value as a value of the key $key.
This object method deletes the value $value from the list of values of the key $key.
This object method deletes all values of the key $key. If $key defaults, the hash becomes empty.
This object method returns a list of all values of key $key.
This object method returns whether the key $key have the value $value.
This object method returns a list of all keys.
Sey Nakajima <sey@jkc.co.jp>
Pogo(3).
2 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
To install Pogo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pogo
CPAN shell
perl -MCPAN -e shell install Pogo
For more information on module installation, please visit the detailed CPAN module installation guide.