perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject Re: [PATCH] lib/mod_perl2.pm
Date Fri, 22 Apr 2005 02:02:25 GMT
Geoffrey Young wrote:
>>May I suggest that this exact comment above that line in mod_perl2.pm
>>prevent the confusion and attempt to fix things?
> 
> 
> done.  feel free to improve it if it's inadequate.
> 
> --Geoff
Okay, I agree with all that.  How about also, we add to Apache2::Status
the below patch.

If you happen to have mp1 and mp2(rc5+) installed in the same perl tree 
you get a row on the 'Loaded Modules' screen:

mod_perl.pm with version 1.999023

which is confusing.  This simply supresses that line since this file 
isn't actually loaded; just preventing mp1 from actually being loaded.

Index: lib/Apache2/Status.pm
===================================================================
--- lib/Apache2/Status.pm       (revision 164006)
+++ lib/Apache2/Status.pm       (working copy)
@@ -229,6 +229,7 @@
          next if $file =~ m:^/:;
          next unless $file =~ m:\.pm:;
          next unless $INC{$file}; #e.g. fake Apache2/TieHandle.pm
+        next if $file eq 'mod_perl.pm';

          no strict 'refs';
          (my $module = $file) =~ s,/,::,g;




END
------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
	http://www.liquidityservicesinc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message