Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Devel::InnerPackage

Name Devel::InnerPackage
Version 0.4
Located at /usr/local/share/perl5
File /usr/local/share/perl5/Devel/InnerPackage.pm
Is Core No
Search CPAN for this module Devel::InnerPackage
Documentation Devel::InnerPackage
Module Details Devel::InnerPackage


NAME

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


SYNOPSIS

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


DESCRIPTION

Given a file like this

    package Foo::Bar;
    sub foo {}
    package Foo::Bar::Quux;
    sub quux {}
    package Foo::Bar::Quirka;
    sub quirka {}
    1;

then

    list_packages('Foo::Bar');

will return

    Foo::Bar::Quux
    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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024