cvs commit: modperl-docs/src/docs/2.0/api/ModPerl Util.pod
gozer 2004/09/09 16:17:38 Modified:src/docs/2.0/api/ModPerl Util.pod Log: it's called unload_package, not unload_module Revision ChangesPath 1.14 +5 -5 modperl-docs/src/docs/2.0/api/ModPerl/Util.pod Index: Util.pod === RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/ModPerl/Util.pod,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- Util.pod 9 Sep 2004 22:41:16 - 1.13 +++ Util.pod 9 Sep 2004 23:17:38 - 1.14 @@ -19,7 +19,7 @@ ModPerl::Util::untaint($string); # removes a module as best as it can - ModPerl::Util::unload_module($module); + ModPerl::Util::unload_package($module); @@ -161,12 +161,12 @@ -=head2 Cunload_module +=head2 Cunload_package Unloads a stash from the current Perl interpreter in the safest way possible. - ModPerl::Util::unload_module($stash); + ModPerl::Util::unload_package($stash); =over 4 @@ -190,9 +190,9 @@ This function may wipe off things loaded by other modules, if the latter have inserted things into the C$stash it was told to unload. -Cunload_module() takes care not to delete sub-stashes when deleting +Cunload_package() takes care not to delete sub-stashes when deleting the requested stash. So for example if CCGI and CCGI::Carp are -loaded, calling Cunload_module('CGI') won't affect CCGI::Carp. +loaded, calling Cunload_package('CGI') won't affect CCGI::Carp. If the module's stash had a corresponding XS shared object loaded it will be unloaded as well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: modperl-docs/src/docs/2.0/api/ModPerl Util.pod
gozer 2004/09/09 16:20:24 Modified:src/docs/2.0/api/ModPerl Util.pod Log: Note that unload_package() will also remove an %INC entry if any. Revision ChangesPath 1.15 +2 -0 modperl-docs/src/docs/2.0/api/ModPerl/Util.pod Index: Util.pod === RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/ModPerl/Util.pod,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- Util.pod 9 Sep 2004 23:17:38 - 1.14 +++ Util.pod 9 Sep 2004 23:20:24 - 1.15 @@ -197,6 +197,8 @@ If the module's stash had a corresponding XS shared object loaded it will be unloaded as well. +If the module was in Perl's C%INC, it will be removed from it. + - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: modperl-docs/src/docs/2.0/api/ModPerl Util.pod
stas2004/09/09 16:30:45 Modified:src/docs/2.0/api/ModPerl Util.pod Log: more tweaks Revision ChangesPath 1.16 +4 -3 modperl-docs/src/docs/2.0/api/ModPerl/Util.pod Index: Util.pod === RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/ModPerl/Util.pod,v retrieving revision 1.15 retrieving revision 1.16 diff -u -u -r1.15 -r1.16 --- Util.pod 9 Sep 2004 23:20:24 - 1.15 +++ Util.pod 9 Sep 2004 23:30:45 - 1.16 @@ -18,8 +18,8 @@ # untaint a string (do not use it! see the doc) ModPerl::Util::untaint($string); - # removes a module as best as it can - ModPerl::Util::unload_package($module); + # removes a stash (.so, %INC{$stash}, etc.) as best as it can + ModPerl::Util::unload_package($stash); @@ -197,7 +197,8 @@ If the module's stash had a corresponding XS shared object loaded it will be unloaded as well. -If the module was in Perl's C%INC, it will be removed from it. +If the stash had a corresponding entry in C%INC, it will be removed +from there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]