b139c69dae
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>
16 lines
368 B
Text
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/
|