NAME
Data::Hive - convenient access to hierarchical data
VERSION
Version 0.02
SYNOPSIS
use Data::Hive;
my $hive = Data::Hive->NEW(\%arg);
print $hive->foo->bar->baz;
$hive->foo->bar->quux->SET(17);
METHODS
Several methods are thin wrappers around required modules in Data::Hive::Store subclasses. These methods all basically call a method on the store with the same (but lowercased) name and pass it the hive's path:
EXISTS
GET
SET
NAME
NEW
arguments:
store
A Data::Hive::Store object, or an object that implements its
get,set, andnamemethods.store_class
Class to instantiate
$storefrom. The classname will have 'Data::Hive::Store::' prepended; to avoid this, prefix it with a '+' ('+My::Store'). Mutually exclusive with thestoreoption.store_args
Arguments to instantiate
$storewith. Mutually exclusive with thestoreoption.
GET
Retrieve the value represented by this object's path from the store.
GETNUM
Soley for Perl 5.6.1 compatability, where returning undef from overloaded numification causes a segfault.
SET
$hive->some->path->SET($val);
Set this path's value in the store.
NAME
Returns a textual representation of this hive's path. Store-dependent.
ITEM
$hive->ITEM('foo');
Return a child of this hive. Useful for path segments whose names are not valid Perl method names.
EXISTS
if ($hive->foo->bar->EXISTS) { ... }
Return true if the value represented by this hive exists in the store.
AUTHOR
Hans Dieter Pearcey, <hdp at cpan.org>
BUGS
Please report any bugs or feature requests to bug-data-hive at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-Hive. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Data::Hive
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2006 Hans Dieter Pearcey, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.