Path::...spatch(3pm)
π Path::Dispatcher::Rule::Dispatch β the redispatch girlies' manual π
okay so bestie, welcome to the <pink>Path::Dispatcher::Rule::Dispatch</pink> page, straight outta the User Contributed Perl Documentation section of your local 3pm manual. this is the β¨redispatchβ¨ one. iykyk. π¦
β¨ NAME β¨
Path::Dispatcher::Rule::Dispatch β redispatch π
πΈ VERSION πΈ
version 1.08 β yes she's got a number, and yes we're respecting it π
π§ SYNOPSIS π§
okay so picture this: you've got a dispatcher, and you want a rule that just hands the whole path off to that dispatcher. it's giving delegation. it's giving "not me doing the work, but i know a girl who will." π
my $dispatcher = Path::Dispatcher->new(
rules => [
Path::Dispatcher::Rule::Tokens->new(
tokens => [ 'help' ],
block => sub { show_help },
),
Path::Dispatcher::Rule::Tokens->new(
tokens => [ 'quit' ],
block => sub { exit },
),
],
);
my $rule = Path::Dispatcher::Rule::Dispatch->new(
dispatcher => $dispatcher,
);
$rule->run("help");
so $dispatcher is over there holding the 'help' and 'quit' tokens like the main character she is, and $rule is the Path::Dispatcher::Rule::Dispatch object whose whole personality is "i know a dispatcher." then $rule->run("help") and boom, we're off to the races. π₯
π DESCRIPTION π
listen. rules of this class? they use another dispatcher to match the path. that's it. that's the whole vibe. one dispatcher handing the path off to another dispatcher. periodt. π
β ATTRIBUTES β
π«Ά dispatcher
a Path::Dispatcher object. and the way that its matches will be returned by matching this rule?? iconic. that's the entire deal. you give it a dispatcher, and when this rule matches, you get that dispatcher's matches back. slay. π
π SUPPORT π
got bugs?? (not the cute kind, the π kind) you can submit them through the RT bug tracker:
or you can email them to bug-Path-Dispatcher@rt.cpan.org β like, actually send mail to that address:
bug-Path-Dispatcher@rt.cpan.org
fr fr, that's the support channel, go use it. π
π AUTHOR π
Shawn M Moore, "<sartak at bestpractical.com>" β the author!! we love her, we thank her, we stan. π
π 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. π
okay so the legal girlies are serious even when i'm not β free software, same terms as Perl 5, that's the deal, no cap.
and that's the whole page bestie!! π¦ this was Path::...spatch(3pm) from perl v5.30.3, dated 2020-07-13 β go forth and redispatch, you absolute icon. πβ¨π
π¦ 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