1Path::Dispatcher::Rule:U:sEenrumC(o3nptmr)ibuted Perl DoPcautmhe:n:tDaitsipoantcher::Rule::Enum(3pm)
2
3
4
6 Path::Dispatcher::Rule::Enum - one of a list of strings must match
7
9 version 1.08
10
12 my $rule = Path::Dispatcher::Rule::Enum->new(
13 enum => [qw(perl ruby python php)],
14 block => sub { warn "I love " . shift->pos(1) },
15 );
16
18 Rules of this class check whether the path matches any of its "enum"
19 strings.
20
22 enum
23 case_sensitive
25 Bugs may be submitted through the RT bug tracker
26 <https://rt.cpan.org/Public/Dist/Display.html?Name=Path-Dispatcher> (or
27 bug-Path-Dispatcher@rt.cpan.org <mailto:bug-Path-
28 Dispatcher@rt.cpan.org>).
29
31 Shawn M Moore, "<sartak at bestpractical.com>"
32
34 This software is copyright (c) 2020 by Shawn M Moore.
35
36 This is free software; you can redistribute it and/or modify it under
37 the same terms as the Perl 5 programming language system itself.
38
39
40
41perl v5.38.0 2023-07-21 Path::Dispatcher::Rule::Enum(3pm)