Class::Unload(3pm)

Class::Unload3pm

Unload a class

Usage

    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

Version

version 0.11

Methods

unload $class

Unloads the given class by clearing out its symbol table and removing it from %INC. If it's a Moose class, the metaclass is also removed.

Acknowledgements

Thanks to Matt S. Trout, James Mastros and Uri Guttman for various tips and pointers.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–11
  6. 12–13

Author

Dagfinn Ilmari Mannsåker <[email protected]>;

From libclass-unload-perl 0.11-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.