httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: [patch] a cleaner make clean
Date Sun, 09 Sep 2001 17:36:46 GMT
On Sun, 9 Sep 2001, Stas Bekman wrote:
 
> I don't think this will work via import() trick since you still want to
> reach the thing in: $self->MM::clean(@_); and you cannot before you call
> WriteMakefile.

it does work.  look at Apache::TestMM::import, it sets up aliases in the
%MY:: namespace.

> > similar to how you can already to for 'test'.
> 
> Here is how I've approached it (stolen from mod_perl's Makefile.PL):

> +sub MY::clean {
> +    my $self = shift;
> +    my $string = $self->MM::clean(@_);
> +    Apache::TestMM::add_dep(\$string, clean => 'test_clean');
> +    $string;
> +}

just move that to Apache::TestMM (without the MY::), then:
use Apache::TestMM qw(test clean);

should work.



Mime
View raw message