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::MVP::Section(3) User Contributed Perl Documentation Config::MVP::Section(3)

Config::MVP::Section - one section of an MVP configuration sequence

version 2.200012

For the most part, you can just consult Config::MVP to understand what this class is and how it's used.

This is the section's name. It's a string, and it must be provided.

This is the (Perl) package with which the section is associated. It is optional. When the section is instantiated, it will ensure that this package is loaded.

This attribute is an arrayref of value names that should be considered multivalue properties in the section. When added to the section, they will always be wrapped in an arrayref, and they may be added to the section more than once.

If this attribute is not given during construction, it will default to the result of calling section's package's "mvp_multivalue_args" method. If the section has no associated package or if the package doesn't provide that method, it default to an empty arrayref.

This attribute is a hashref of name remappings. For example, if it contains this hashref:

  {
    file => 'files',
    path => 'files',
  }

Then attempting to set either the "file" or "path" setting for the section would actually set the "files" setting.

If this attribute is not given during construction, it will default to the result of calling section's package's "mvp_aliases" method. If the section has no associated package or if the package doesn't provide that method, it default to an empty hashref.

This is the storage into which properties are set. It is a hashref of names and values. You should probably not alter the contents of the payload, and should read its contents only.

This attribute is true if the section has been marked finalized, which will prevent any new values from being added to it. It can be set with the "finalize" method.

This attributes points to the sequence into which the section has been assembled. It may be unset if the section has been created but not yet placed in a sequence.

  $section->add_value( $name => $value );

This method sets the value for the named property to the given value. If the property is a multivalue property, the new value will be pushed onto the end of an arrayref that will store all values for that property.

Attempting to add a value for a non-multivalue property whose value was already added will result in an exception.

  $section->load_package($package, $section_name);

This method is used to ensure that the given $package is loaded, and is called whenever a section with a package is created. By default, it delegates to Class::Load. If the package can't be found, it calls the missing_package method. Errors in compilation are not suppressed.

  $section->missing_package($package, $section_name);

This method is called when "load_package" encounters a package that is not installed. By default, it throws an exception.

Ricardo Signes <rjbs@cpan.org>

This software is copyright (c) 2021 by Ricardo Signes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2021-01-10 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.