Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

Devel::InnerPackage

Perl 5 version 12.2 documentation
Recently read

Devel::InnerPackage

NAME

Devel::InnerPackage - find all the inner packages of a package

SYNOPSIS

  1. use Foo::Bar;
  2. use Devel::InnerPackage qw(list_packages);
  3. my @inner_packages = list_packages('Foo::Bar');

DESCRIPTION

Given a file like this

  1. package Foo::Bar;
  2. sub foo {}
  3. package Foo::Bar::Quux;
  4. sub quux {}
  5. package Foo::Bar::Quirka;
  6. sub quirka {}
  7. 1;

then

  1. list_packages('Foo::Bar');

will return

  1. Foo::Bar::Quux
  2. Foo::Bar::Quirka

METHODS

list_packages <package name>

Return a list of all inner packages of that package.

AUTHOR

Simon Wistow <simon@thegestalt.org>

COPYING

Copyright, 2005 Simon Wistow

Distributed under the same terms as Perl itself.

BUGS

None known.