Perl::Analysis::Static::ModuleLister - list all module below a namespace
version 0.004
This class searches for modules of a given prefix in the namespace Perl::Analysis::Static.
Is main purpose is to give programs an easy way to show the user possible arguments. For example, perlanalst uses it for its option --list--questions.
--list--questions
String defining what 'kind' of module you want to find. Reasonable values are 'Question', 'Filter', and 'Analysis' since there are actually modules in the according namespace.
Searches for modules that live in the namespace Perl::Analysis::Static::KIND. KIND is the attribute kind.
kind
Returns reference to a list with the names of the modules (with the Perl::Analysis::Static::KIND removed), or undef if there are no modules in this namespace.
# find out what questions may be called my $ml = Perl::Analysis::Static::ModuleLister->new(kind => 'Question'); my $questions=$ml->list();
Gregor Goldbach <glauschwuffel@nomaden.org>
This software is copyright (c) 2011 by Gregor Goldbach.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perl::Analysis::Static, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Analysis::Static
CPAN shell
perl -MCPAN -e shell install Perl::Analysis::Static
For more information on module installation, please visit the detailed CPAN module installation guide.