Path::...::Enum(3pm)
π Path::...::Enum(3pm) β aka Path::Dispatcher::Rule::Enum π
okay bestie, listen. this is a Perl manpage, user-contributed documentation style, and it's about one specific lil rule class. it lives at Path::Dispatcher::Rule::Enum. let's get into it π¦
β¨ NAME β¨
Path::Dispatcher::Rule::Enum β one of a list of strings must match π―
like. literally that's the whole job. one of the strings has to hit or the rule doesn't go off. periodt.
πΈ VERSION πΈ
version 1.08 β¨
π SYNOPSIS π
here's the vibe, verbatim, don't touch the code bestie:
my $rule = Path::Dispatcher::Rule::Enum->new(
enum => [qw(perl ruby python php)],
block => sub { warn "I love " . shift->pos(1) },
);
look at that. a list of languages. a block that screams about love. iconic behaviour honestly π
π«Ά DESCRIPTION π«Ά
so rules of this class check whether the path matches any of its "enum" strings. that's it. that's the tea. if the path is one of the strings in the enum list, slay, it matches π
π ATTRIBUTES π
π enum
the list of strings. this is the whole "one of these must match" situation from the DESCRIPTION. it's giving very important, ngl.
π case_sensitive
it's on the list. the manpage does not elaborate. we do not invent lore here bestie, so that's genuinely all the original gives us π no cap.
π₯ SUPPORT π₯
got bugs? yeah, same, but like β the code kind. submit them through the RT bug tracker:
https://rt.cpan.org/Public/Dist/Display.html?Name=Path-Dispatcher
or you can email bug-Path-Dispatcher@rt.cpan.org π
fr fr, if something's broken, tell the maintainers, don't just suffer in silence. main character energy includes filing tickets β¨
π AUTHOR π
Shawn M Moore, <sartak at bestpractical.com> π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2020 by Shawn M Moore.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, but respectfully π§
and that's the whole page, bestie!! source vibes: perl v5.30.3, dated 2020-07-13, and the doc itself is Path::...::Enum(3pm). tysm for reading, now go match some strings πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: libpath-dispatcher-perl 1.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpath-dispatcher-perl 1.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libpath-dispatcher-perl 1.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpath-dispatcher-perl 1.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpath-dispatcher-perl 1.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpath-dispatcher-perl 1.08-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