I have just been explaining one of my Makefile.PLs to a collegue.
It has:
package MY;
sub post_initialize
{
my ($self) = @_;
foreach $name (grep /(~|\.bck|\.old)$/,keys %{$self->{PM}})
{
delete $self->{PM}->{$name};
}
return $self->SUPER::post_initialize;
}
That is boiler-plate stuff that ends up in nearly all the ones I write.
(Sometimes it has .orig and .rej - depends if I often do patches
to that place...)
Which is just stopping various editor's backup files getting installed.
IIRC some parts of MM do similar things already.
If at least /~$/ and patch-oid extension got excluded from list by default
far fewer overrides would been needed.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/