X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=9d79c140a4a2dd5c9278f86595b3044e9c50185d;hb=use-moo;hp=77bb41fc85c3db232db3ca105f9a224fa6f1d69a;hpb=30ede608b06ea02352a52bd0bb71d5f7798998b8;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/Makefile.PL b/Makefile.PL index 77bb41f..9d79c14 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,7 @@ use warnings; use strict; use 5.008001; +BEGIN { unshift @INC, '.' unless $INC[-1] eq '.'; } use inc::Module::Install 1.00; use Getopt::Long(); @@ -87,7 +88,7 @@ if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) { my @missing_plugins; for my $plugin (qw(ReadmeFromPod AuthorTests)) { eval "require Module::Install::$plugin" and next; - push @missing_plugins, "Module::Instal::$plugin"; + push @missing_plugins, "Module::Install::$plugin"; chomp(my $err = $@); $missing_plugins[-1] .= " ($err)" unless $err =~ m{^Can't locate Module/Install/$plugin.pm in \@INC};