You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2004/09/09 20:36:12 UTC
Re: cvs commit: modperl-2.0/t/response/TestModules reload.pm
gozer@apache.org wrote:
> Index: Reload.pm
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/lib/Apache/Reload.pm,v
> retrieving revision 1.14
> retrieving revision 1.15
> diff -u -r1.14 -r1.15
> --- Reload.pm 11 Mar 2004 06:34:24 -0000 1.14
> +++ Reload.pm 9 Sep 2004 18:29:09 -0000 1.15
> @@ -66,6 +66,12 @@
> }
> }
Probably add a caveat comment here, since it'll unregister it only in the
current interpreter/process.
> +sub unregister_module {
> + my($class, $package) = @_;
> + my $module = package_to_module($package);
> + delete $INCS{$module};
> +}
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: cvs commit: modperl-2.0/t/response/TestModules reload.pm
Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Stas Bekman wrote:
> gozer@apache.org wrote:
>
>
>> Index: Reload.pm
>> ===================================================================
>> RCS file: /home/cvs/modperl-2.0/lib/Apache/Reload.pm,v
>> retrieving revision 1.14
>> retrieving revision 1.15
>> diff -u -r1.14 -r1.15
>> --- Reload.pm 11 Mar 2004 06:34:24 -0000 1.14
>> +++ Reload.pm 9 Sep 2004 18:29:09 -0000 1.15
>> @@ -66,6 +66,12 @@
>> }
>> }
>
>
> Probably add a caveat comment here, since it'll unregister it only in the
> current interpreter/process.
Good point. Added.
>
>> +sub unregister_module {
>> + my($class, $package) = @_;
>> + my $module = package_to_module($package);
>> + delete $INCS{$module};
>> +}
>
>
>
--
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5