Path::...:Match(3pm)
πΈ Path::Router::Route::Match π
okay bestie, gather round, because we're looking at Path::Router::Route::Match β that's the Perl manpage, 3pm section, and she is the little object you get handed when your router actually matches something. lowkey iconic.
β¨ NAME β¨
Path::Router::Route::Match β the result of a Path::Router match. that's it, that's the whole job, and she does it flawlessly π
π VERSION π
version 0.15 β yeah she's been around a minute and she's still serving π«Ά
π¦ DESCRIPTION π¦
so here's the tea: this is the object you get back when you call match on a Path::Router instance. like, that's the whole origin story.
and bestie, she's packed. she holds all the info you'd need to do any dispatching necessary. every little thing you need to route your lil request to where it's going? she's got it. no cap. π
π METHODS π
new
the constructor. that's the vibe. (the docs don't elaborate and honestly? respect the mystery π)
path
this is the path that got matched. the actual path. the one that matched. yes queen, that one β¨
mapping
this is the mapping of your router part names to the actual parts of the path. so like, name β real actual value, you know?
heads up: if your route had no variables, this comes back as an empty HASH ref. empty! zero entries! not undef, an empty hashref. don't get it twisted π
route
this is the Path::Router::Route instance that was matched. the route object itself, in the flesh, showing up to the function π
target
this one's a delegator, bestie β she just hands it off. she calls the target method on the route that was matched and gives you whatever that says. middle-man energy but make it useful π
meta
...and that's all she wrote. the docs list her and then just. stop. we love an enigma β
π BUGS π
okay so, real talk: all complex software has bugs lurking in it, and this module is no exception. she's not immune, nobody is, we're all just out here.
if you find a bug, please either email me, or add the bug to cpan-RT. that's it, that's the ask, do it for the culture π«Ά
π AUTHOR π
Stevan Little <stevan@cpan.org> β king behavior, honestly π
π COPYRIGHT AND LICENSE π
Copyright 2008-2011 Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR (yes, again, she said it twice) π
Stevan Little <stevan@cpan.org>
π COPYRIGHT AND LICENSE (round two, and we're obsessed) π
This software is copyright (c) 2016 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's a wrap, bestie!! this lil page was brought to you by perl v5.34.0, dated 2022-06-16 β mwah, kisses, go match some routes ππβ¨π¦
π¦ where this page comes from
- debian bookworm: libpath-router-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpath-router-perl 0.15-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