freebsd-ports/devel/p5-Class-Unload/pkg-descr
Martin Wilke b139c69dae Unloads the given class by clearing out its symbol table and removing
it from %INC.

SYNOPSIS

    use Class::Unload;
    use Class::Inspector;

    use Some::Class;

    Class::Unload->unload( 'Some::Class' );
    Class::Inspector->loaded( 'Some::Class' ); # Returns false

    require Some::Class; # Reloads the class

WWW: http://search.cpan.org/dist/Class-Unload/

PR:		ports/132406
Submitted by:	Cezary Morga <cm at therek.net>
2009-03-15 17:17:33 +00:00

16 lines
368 B
Text

Unloads the given class by clearing out its symbol table and removing
it from %INC.
SYNOPSIS
use Class::Unload;
use Class::Inspector;
use Some::Class;
Class::Unload->unload( 'Some::Class' );
Class::Inspector->loaded( 'Some::Class' ); # Returns false
require Some::Class; # Reloads the class
WWW: http://search.cpan.org/dist/Class-Unload/