The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Perl::Analysis::Static::ModuleLister - list all module below a namespace

VERSION

version 0.004

DESCRIPTION

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.

ATTRIBUTES

kind

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.

METHODS

list

Searches for modules that live in the namespace Perl::Analysis::Static::KIND. KIND is the attribute 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.

EXAMPLES

  # find out what questions may be called
  my $ml = Perl::Analysis::Static::ModuleLister->new(kind => 'Question');
  my $questions=$ml->list();

AUTHOR

Gregor Goldbach <glauschwuffel@nomaden.org>

COPYRIGHT AND LICENSE

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.