NAME
Config::AST::Follow - direct addressing engine
DESCRIPTION
This class implements direct node addressing in Config::AST. Objects of this class are created as
$obj = Config::AST::Follow->new($node, $lexicon)
where $node is the start node, and $lexicon is the lexicon corresponding to that node. A Config::AST::Follow object transparently delegates its methods to the underlying $node, provided that such method is defined for $node. If it is not, it reproduces itself with the new $node, obtained as a result of the call to $node->subtree with the method name as its argument. If the result of the subtree call is a leaf node, it is returned verbatim. The lexicon hash is consulted to check if the requested node name is allowed or not. If it is not, croak is called. As a result, the following call:
$obj->A->B->C
is equivalent to
$node->getnode('X', 'Y', 'Z')
except that it will consult the lexicon to see if each name is allowed within a particular section.
SEE ALSO
Config::AST(3).