Devel::...rPackage(3)

πŸ’– NAME πŸ’–

Okay bestie, real talk: this page is Devel::...rPackage(3) from the User Contributed Perl Documentation manual, and the actual module is Devel::InnerPackage β€” it finds all the inner packages of a package. Slay. ✨

🌸 SYNOPSIS 🌸

use Foo::Bar;
use Devel::InnerPackage qw(list_packages);

my @inner_packages = list_packages('Foo::Bar');

πŸ¦‹ DESCRIPTION πŸ¦‹

So picture a file like this, okay?

package Foo::Bar;

sub foo {}

package Foo::Bar::Quux;

sub quux {}

package Foo::Bar::Quirka;

sub quirka {}

1;

Then this little icon right here:

list_packages('Foo::Bar');

will return:

Foo::Bar::Quux
Foo::Bar::Quirka

Periodt. πŸ’…

πŸŽ€ METHODS πŸŽ€

🧚 list_packages <package name>

Returns a list of all the inner packages of that package. That’s the whole vibe. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wistow <simon@thegestalt.org> β€” iconic behavior, no cap. πŸ’œ

🌈 COPYING 🌈

Copyright, 2005 Simon Wistow.

Distributed under the same terms as Perl itself. πŸ“

πŸ’€ BUGS πŸ’€

None known. We love a clean vibe check. 😌


Cute little sign-off, bestie: this page comes from perl v5.42.0, dated 2025-01-11, and its header is Devel::...rPackage(3) πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from