Data::Tree - a hash-based tree-like data structure
use Data::Tree; my $DT = Data::Tree::->new(); $DT->set('First::Key',[qw(a b c]); $DT->get('First::Key'); # should return [a b c] $DT->get_scalar('First::Key'); # should return a $DT->get_array('First::Key'); # should return (a, b, c)
A simple hash-based nested tree.
Decrement the numeric value of the given key by one.
Remove the given key and all subordinate keys.
Return the value associated with the given key. May be an SCALAR, HASH or ARRAY.
Return the values associated with the given key as a list.
Return the value associated with the given key as an SCALAR.
Increment the numeric value of the given key by one.
Set the value of the given key to the given value.
Data::Tree - A simple hash-based tree.
Dominik Schulz <dominik.schulz@gauner.org>
This software is copyright (c) 2012 by Dominik Schulz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Tree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Tree
CPAN shell
perl -MCPAN -e shell install Data::Tree
For more information on module installation, please visit the detailed CPAN module installation guide.