GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Config::AST::Node::Section(3) User Contributed Perl Documentation Config::AST::Node::Section(3)

Config::AST::Node::Section - Configuration section node.

Nodes of this class represent configuration sections in the AST.

Creates new section object. ROOT is the root object of the tree or the Config::AST object. The ARG => VAL pairs are passed to the parent class constructor (see Config::AST::Node).

Returns tree containing all subordinate nodes of this node.

Returns the subnode at $key or undef if there is no such subnode.

Creates new subnode with the given $key and $value. Returns the created node.

Returns a list of names of all subordinate statements in this section.

Returns true if statement with name $str is present in the section described by $node.

Deletes the node with name $name. Returns the removed node, or "undef" if not found.

Merges the section $other (a Config::AST::Node::Section) to $node.

Returns parse tree converted to a hash reference. If $map is supplied, it must be a reference to a function. For each $key/$value pair, this function will be called as:

    ($newkey, $newvalue) = &{$map}($what, $key, $value)

where $what is "section" or "value", depending on the type of the hash entry being processed. Upon successful return, $newvalue will be inserted in the hash slot for the key $newkey.

If $what is "section", $value is always a reference to an empty hash (since the parse tree is traversed in pre-order fashion). In that case, the $map function is supposed to do whatever initialization that is necessary for the new subtree and return as $newvalue either $value itself, or a reference to a hash available inside the $value. For example:

    sub map {
        my ($what, $name, $val) = @_;
        if ($name eq 'section') {
            $val->{section} = {};
            $val = $val->{section};
        }
        ($name, $val);
    }

Returns the string "(section)".

Config::AST, Config::AST::Node.
2019-08-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.