Tyler MacDonald wrote:
        Seriously though, it sounds like having at least a loud warning "I
did not write this Makefile.PL, move it out of the way first" is worthwhile.

Pseudocode:

if ($mb->overwrite_makefile() && -f $Makefile ) {
    my $answer = $mb->y_n("Found an existing Makefile.PL; overwrite?");
    if ($answer =~/y/i) {
        write_makefile;
    }
}

where overwrite_makefile is a package option passed to M::B::new(). I did it this way so that

a) the developer has to affirmatively choose that option;
b) the developer has to _always_ hit 'Y' when running './Build distdir', just in case he/she did something manually and forgot to turn off the option.

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

Reply via email to