Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Config::AST::Follow(3)User Contributed Perl DocumentatioConfig::AST::Follow(3)

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).

perl v5.32.0			  2019-11-19		Config::AST::Follow(3)

NAME | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Config::AST::Follow&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help