Dist::Z...alConfig(3)

πŸ’– Dist::Z...alConfig(3)

okay bestie, come sit with me β€” this is a User Contributed Perl Documentation page, and it's genuinely short and sweet. We're talking about Dist::Zilla::MVP::Assembler::GlobalConfig, the little assembler that handles the global configuration moment. ✨

🌸 NAME 🌸

Dist::Zilla::MVP::Assembler::GlobalConfig β€” it's a Dist::Zilla::MVP::Assembler for global configuration. that's the whole name, no notes, she said what she said πŸ’…

πŸŽ€ VERSION πŸŽ€

version 6.040 β€” yes, that's the number, don't @ me.


⭐ OVERVIEW ⭐

so here's the tea πŸ«–: this thing is a subclass of Dist::Zilla::MVP::Assembler, and it shows up specifically when the global configuration is being assembled. main character energy, but make it config.

she has a stash_registry attribute β€” that's a hashref, btw β€” and that's where all the stashes get registered. think of it as her little jewelry box πŸŽ€ where every stash gets its assigned spot.

they get registered via the register_stash method (scroll down, it's right there πŸ‘‡), which is generally called by the register_component method on a Dist::Zilla::Role::Stash-performing class. iykyk.

🧚 PERL VERSION 🧚

this module should work on any version of perl still receiving updates from the Perl 5 Porters. fr fr. that means any version of perl released in the last two to three years. like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38. periodt. 🌈

⚠️ okay so listen: it may work on older versions of perl, but no guarantee is made that the minimum required version won't be increased. 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 when she moves on. πŸ’€

πŸ’… METHODS πŸ’…

register_stash

$assembler->register_stash($name => $stash_object);

this adds a stash to the assembler's stash registry β€” unless the name is already taken, in which case an exception is raised. no duplicates allowed, bestie, this is a one-name-one-stash household. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Ricardo SIGNES 😏 <cpan@semiotic.systems>

like, the 😏 is literally in the original. iconic. we love an author who brings the smirk. πŸ™ˆ

This software is copyright (c) 2026 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. slay, free software rights. πŸ¦‹


and that's the whole page, bestie β€” short, efficient, no filler. the vibe check passed. 🌸

this was perl v5.42.3, dated 2026-10-19, from the Dist::Z...alConfig(3) files. mwah, go forth and register those stashes responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from