1Config::MVP::Sequence(3U)ser Contributed Perl DocumentatiCoonnfig::MVP::Sequence(3)
2
3
4
6 Config::MVP::Sequence - an ordered set of named configuration sections
7
9 version 2.200012
10
12 A Config::MVP::Sequence is an ordered set of configuration sections,
13 each of which has a name unique within the sequence.
14
15 For the most part, you can just consult Config::MVP to understand what
16 this class is and how it's used.
17
19 is_finalized
20 This attribute is true if the sequence has been marked finalized, which
21 will prevent any changes (via methods like "add_section" or
22 "delete_section"). It can be set with the "finalize" method.
23
25 add_section
26 $sequence->add_section($section);
27
28 This method adds the given section to the end of the sequence. If the
29 sequence already contains a section with the same name as the new
30 section, an exception will be raised.
31
32 delete_section
33 my $deleted_section = $sequence->delete_section( $name );
34
35 This method removes a section from the sequence and returns the removed
36 section. If no section existed, the method returns false.
37
38 section_named
39 my $section = $sequence->section_named( $name );
40
41 This method returns the section with the given name, if one exists in
42 the sequence. If no such section exists, the method returns false.
43
44 section_names
45 my @names = $sequence->section_names;
46
47 This method returns a list of the names of the sections, in order.
48
49 sections
50 my @sections = $sequence->sections;
51
52 This method returns the section objects, in order.
53
55 Ricardo Signes <rjbs@cpan.org>
56
58 This software is copyright (c) 2021 by Ricardo Signes.
59
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62
63
64
65perl v5.32.1 2021-01-27 Config::MVP::Sequence(3)