Net::IPAM::Tree::Node - A node in the Net::IPAM::Tree
This module is not useful standalone, it's just needed for Net::IPAM::Tree
A node is a recursive datastructure with a payload (block) and a parent and zero or more child nodes.
node = { block => Net::IPAM::Block, parent => Net::IPAM::Tree::Node, childs => [ Net::IPAM::Tree::Node, ... ], }; use Net::IPAM::Tree::Node; my $n = Net::IPAM::Tree::Node->new( { block => $block, parent = $node, childs = [] } );
Create Net::IPAM::Tree::Node object.
Accessor for the block attribute.
print $node->block;
Accessor for the parent attribute.
$parent = $node->parent
Accessor for the childs attribute.
$child = $node->childs->[$i]
Karl Gaissmaier, <karl.gaissmaier(at)uni-ulm.de>
<karl.gaissmaier(at)uni-ulm.de>
Please report any bugs or feature requests to bug-net-ipam-tree at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-IPAM-Tree. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-ipam-tree at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::IPAM::Tree::Node
You can also look for information at:
on github
TODO
This software is copyright (c) 2020 by Karl Gaissmaier.
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 Net::IPAM::Tree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::IPAM::Tree
CPAN shell
perl -MCPAN -e shell install Net::IPAM::Tree
For more information on module installation, please visit the detailed CPAN module installation guide.