Data::Hive::Store::Hash
Simple hash store for Data::Hive.
my $store = Data::Hive::Store::Hash->new(\%hash);
Takes a hashref to use as the store.
Use given \@path as nesting keys in the hashref store.
\@path
See "get". Dies if you try to set a key underneath an existing non-hashref key, e.g.:
$hash = { foo => 1 }; $store->set([ 'foo', 'bar' ], 2); # dies
Returns a string, potentially suitable for eval-ing, describing a hash dereference of a variable called $STORE.
$STORE
"$STORE->{foo}->{bar}"
This is probably not very useful.
Descend the hash and return false if any of the path's parts do not exist, or true if they all do.
To install Data::Hive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Hive
CPAN shell
perl -MCPAN -e shell install Data::Hive
For more information on module installation, please visit the detailed CPAN module installation guide.