1Class::Unload(3)      User Contributed Perl Documentation     Class::Unload(3)
2
3
4

NAME

6       Class::Unload - Unload a class
7

VERSION

9       version 0.11
10

SYNOPSIS

12           use Class::Unload;
13           use Class::Inspector;
14
15           use Some::Class;
16
17           Class::Unload->unload( 'Some::Class' );
18           Class::Inspector->loaded( 'Some::Class' ); # Returns false
19
20           require Some::Class; # Reloads the class
21

METHODS

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

SEE ALSO

28       Class::Inspector
29

ACKNOWLEDGEMENTS

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

AUTHOR

35       Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>;
36
38       This software is copyright (c) 2017 by Dagfinn Ilmari Mannsåker.
39
40       This is free software; you can redistribute it and/or modify it under
41       the same terms as the Perl 5 programming language system itself.
42
43
44
45perl v5.32.1                      2021-01-27                  Class::Unload(3)
Impressum