MooseX...mespace(3pm)
π NAME
okay bestie, gather round, because this page is literally about MooseX::Declare::Syntax::Keyword::Namespace β the thing that lets you declare an outer namespace. That's it. That's the whole gig. π
(also hi, this is MooseX...mespace(3pm), straight out of the User Contributed Perl Documentation manual, in case you were wondering which doc you wandered into π«Ά)
β¨ VERSION
version 0.43 β yes, we're on 0.43, iconic behavior only.
πΈ SYNOPSIS
like, here's the vibe:
use MooseX::Declare;
namespace Foo::Bar;
class ::Baz extends ::Qux with ::Fnording {
...
}
π DESCRIPTION
so the namespace keyword lets you declare an outer namespace, and then everything else you write that's namespaced can just nest up inside it. no cap. πͺΊ
and the SYNOPSIS above? it's effectively the exact same thing as this:
use MooseX::Declare;
class Foo::Bar::Baz extends Foo::Bar::Qux with Foo::Bar::Fnording {
...
}
like, same energy, same result, you just didn't have to type the whole prefix over and over. main character efficiency fr fr. β¨
π METHODS
parse
Object->parse(Object $context)
what it does: it'll skip the declarator, parse the namespace, and then push that namespace onto the file package stack. that's the whole move. obsessed. π
π¦ CONSUMES
- MooseX::Declare::Syntax::KeywordHandling
π SEE ALSO
- MooseX::Declare
π AUTHOR
Florian Ragwitz <rafl@debian.org> β king behavior, thank you for your service π
β 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.
okay that's the whole page, you're officially educated ππ this lil beauty shipped as part of perl v5.34.0, dated 2022-06-15, and the page itself answers to MooseX...mespace(3pm) (yes the name is truncated, we don't talk about it π). bye bestie, go namespace something π¦β¨
π¦ 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