DataStructure::BTree
A binary tree data-structure, written in pure Perl.
DataStructure::BTree->new(%options)
Creates an empty binary tree.
Available options are:
The comparator used for the elements of the tree. Should be a reference to a sub using $a and $b. Defaults to using cmp if not specified.
$a
$b
cmp
Whether several identical values can be stored.
To install DataStructure, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DataStructure
CPAN shell
perl -MCPAN -e shell install DataStructure
For more information on module installation, please visit the detailed CPAN module installation guide.