Finding all Plack Middleware or Perl::Critic Policies
Recently I was working on a patch for MetaCPAN, but then it turned out that I don't need to implement it as it is already working. I wanted to be able to list all the modules within a namespace. Apparently it is very easy. I only need to prefix my search with module:
A few examples:
- module:Plack::Middleware
- Perl::Critic::Policy
- Catalyst::Plugin
- Dancer::Plugin
- Dancer2::Plugin
- Mojolicious::Plugin
- Padre::Plugin
Now I only need to figure how to list all of them on a single page.
BTW If you are looking for related articles on the Perl Maven site here are a few links:
- PSGI - Plack
- Dancer
- Mojolicious
- Catalyst
- or type in Perl::Critic in the box on the top menu
Caveat
As I Francisco Zarabozo commented and as I also found out later, the module: keyword does not only match the beginning of the module name. It matches any whole part of the module name. So for example module:Plugin will find any module that has Plugin in its name.
Published on 2014-08-31