Apache::Wyrd::Services::Tree - Data-tree storage object
Very simple object for storing values of any sort with no checking.
my $tree=Apache::Wyrd::Services::Tree->new( {key1 => value1, key2 => value2, key3 => [a, b, c]} ); my $tree=Apache::Wyrd::Services::Tree->new( {key1 => value1, key2 => value2, _debug => 1} ); print $tree->key1; #prints value1 $tree->key1('value4') print $tree->key1; #prints value4
Tree uses an initialization hash for the initial state. Tree items are added to/set by calling the tree-node name. When an argument is supplied, it is assigned to the key.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.