Net::ISC::DHCPd::Config::Role - Generic config methods and attributes
See Net::ISC::DHCPd::Config for synopsis.
The parent node in the config tree.
The root node in the config tree.
How far this node is from the root node.
List of possible child nodes.
Regex to match for the node to be added.
Regex to search for before ending the current node block.
Will not be used if the node does not have any possible children.
$int = $self->parse;
Parses a current node recursively. Does this by reading line by line from $self->root->filehandle, and use the rules from the possible child elements and endpoint.
$hash_ref = $self->captured_to_args(@list);
Called when a regex matches, with a list of captured strings.
$self->captured_endpoint(@list)
Called when a endpoint matches, with a list of captured strings.
My::Class->create_children(@classnames)
This method is used internally to create extra attributes in classes and construct the children attribute.
$config_text = $self->generate_config_from_children;
Loops all child node and calls generate().
See Net::ISC::DHCPd.
To install Net::ISC::DHCPd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ISC::DHCPd
CPAN shell
perl -MCPAN -e shell install Net::ISC::DHCPd
For more information on module installation, please visit the detailed CPAN module installation guide.