Path::Dispatcher::Rule::Enum - one of a list of strings must match
my $rule = Path::Dispatcher::Rule::Enum->new( enum => [qw(perl ruby python php)], block => sub { warn "I love " . shift->pos(1) }, );
Rules of this class check whether the path matches any of its "enum" strings.
To install Path::Dispatcher, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::Dispatcher
CPAN shell
perl -MCPAN -e shell install Path::Dispatcher
For more information on module installation, please visit the detailed CPAN module installation guide.