Sebastian Knapp > Package-Subroutine-0.16_3 > Package::Subroutine::Namespace

Download:
Package-Subroutine-0.16_3.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source   Latest Release: Package-Subroutine-0.18

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_childs('Package::Subroutine');
  # should print at least: Namespace

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

DESCRIPTION ^

list_childs

Class method to list all child namespaces for a given namespace.

delete_childs

Deletes sub namespaces from a namespace, takes an optional list namespace 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 by Sebastian Knapp <rock@ccls-online.de>