On Mon, 17 Sep 2001, Stas Bekman wrote:

> OK, using the patch I've just sent for auto-mkpath and using all the
> latest patches, makes the perlrequire test short and sweet:

looks good, but i would fold the duplicated code into something like this:

my %require_tests = (
    main => 'Loaded by Parent',
    vh   => 'Loaded by VirtualHost',
);

while (my($test, $magic) = each %require_tests) {
     my $mod = <<EOF;
package My::PerlRequireTest;
\$My::PerlRequireTest::MAGIC = '$magic';
1;
EOF
     my $dir  = catfile $target_dir, $test;
     my $file = catfile $dir, 'PerlRequireTest.pm';
     $self->writefile($file, $mod, 1);
}

and i could imagine another implementation where APACHE_TEST_CONFIGURE is
inherited to do this ;-)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to