NAME

Package::Subroutine::Namespace - naive namespace utilities

SYNOPSIS

use Package::Subroutine::Namespace;

# shortcut
my $ns = bless \my $v, 'Package::Subroutine::Namespace';

print "$_\n" for $ns->list_namespaces('Package::Subroutine');
# should print at least: Namespace

$ns->delete_namespaces('Package::Subroutine','Namespace');
# deletes sub namespaces, but keeps the Namespace module intact

DESCRIPTION

list_namespaces

Class method to list all namespaces in a given package.

delete_namespaces

Deletes sub namespaces from a namespace, takes an optional list with namespace child names which are saved from extinction.

Removing is done simply with builtin delete function.

AUTHOR

Sebastian Knapp

LICENSE

Perl has a free license, so this module shares it with this programming language.

Copyleft 2006-2009,2025 by Sebastian Knapp <sknpp@cpan.org>