Config:...Sequence(3)
π Config::MVP::Sequence π
okay bestie, so this is Config::MVP::Sequence from the User Contributed Perl Documentation pages (you know, the Config:...Sequence(3) one) β and it's literally just an ordered set of named configuration sections. that's the whole vibe. let's get into it β¨
π VERSION π
this is version 2.200013. noted. slay.
πΈ DESCRIPTION πΈ
so a Config::MVP::Sequence is, and I cannot stress this enough, an ordered set of configuration sections, and every single one of those sections has a name that's unique within the sequence. no duplicates allowed. the sequence said "one of each, bestie" π
and honestly? for the most part you can just go read Config::MVP to understand what this class is and how it gets used. that's the source of truth, go look at it, iykyk π«Ά
π¦ PERL VERSION π¦
this module should work on any version of perl still receiving updates from the Perl 5 Porters. translation: any perl released in the last two to three years. so like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38. periodt β¨
okay but listen β even though it may work on older versions of perl, no guarantee is made that the minimum required version won't get bumped up. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. so don't come for her π
π ATTRIBUTES π
β¨ is_finalized β¨
this attribute is true if the sequence has been marked finalized β and being finalized means it will prevent any changes (you know, via methods like add_section or delete_section). once it's locked in, it's locked in bestie, no takebacks π
it can be set with the finalize method. π
π METHODS π
β add_section β
$sequence->add_section($section);
this method adds the given section to the end of the sequence. but β and this is important β if the sequence already contains a section with the same name as the new section, an exception will be raised. names are unique around here, no exceptions (well, actually, exceptions. that's the whole thing π).
β delete_section β
my $deleted_section = $sequence->delete_section( $name );
this method removes a section from the sequence and returns the removed section. if no section existed, the method returns false. it's giving "you can't delete what was never there" π
β section_named β
my $section = $sequence->section_named( $name );
this method returns the section with the given name, if one exists in the sequence. if no such section exists, the method returns false. simple as that π
β section_names β
my @names = $sequence->section_names;
this method returns a list of the names of the sections, in order. in order!! the ordering is the whole point bestie π¦
β sections β
my @sections = $sequence->sections;
this method returns the section objects, in order. the actual objects this time, not just the names. main character energy π₯
π AUTHOR π
Ricardo Signes <cpan@semiotic.systems> β iconic behavior, we love to see it π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2022 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. free software slay π
and that's the whole page bestie!! π«Ά cute lil sign-off for you: this was perl v5.42.0, dated 2025-07-25, straight out of the Config:...Sequence(3) manual. mwah πβ¨
π¦ where this page comes from
- fedora 43: perl-Config-MVP 2.200013-9.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Config-MVP 2.200013-9.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms