MooseX...issing(3pm)
π MooseX::Declare::Syntax::EmptyBlockIfMissing π
okay bestie, so this page is from the MooseX...issing(3pm) corner of the perl man-verse β which is just the short way of saying MooseX::Declare::Syntax::EmptyBlockIfMissing, a whole mouthful of a module name that we're gonna get through together, fr fr. π
β¨ VERSION β¨
version 0.43 β yes, that's the vibe we're on.
πΈ DESCRIPTION πΈ
So here's the tea β: the MooseX::Declare::Syntax::NamespaceHandling role is out here demanding that whoever consumes it deals with the case of blocks that literally don't exist. Like, non-existent blocks. Empty. Gone. Not there. π
And this role? This role is the bestie who shows up and handles it β it injects an empty block, and that block contains only the generated code parts in it. Nothing extra, no crumbs, just the generated bits. β¨
π¦ METHODS π¦
π
handle_missing_block
Object->handle_missing_block (Object $context, Str $body, %args)
This one right here injects the generated code β wrapped all cozy in { ... } β straight into the code at the exact spot where the keyword was called. It's giving surgical precision, it's giving main character energy, it's literally just doing its one job and slaying at it. π
π SEE ALSO π
MooseX::DeclareMooseX::Declare::Syntax::NamespaceHandling
like, go read those too, they're part of the lore iykyk π«Ά
π AUTHOR π
Florian Ragwitz <rafl@debian.org> β the icon, the legend, the one who wrote this. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2008 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
no cap, that's the whole license. free software, perl 5 terms, go wild (responsibly). π
and that's the whole page bestie!! π₯³ this one was documented with perl v5.34.0 back on 2022-06-15 β so yeah, shoutout to that perl version and that date, they carried the footer. bye babes, go handle some missing blocks π
β¨πΈ
π¦ where this page comes from
- debian bookworm: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms