Skip to content

Instantly share code, notes, and snippets.

@rbuels
Created November 2, 2009 07:25
Show Gist options
  • Select an option

  • Save rbuels/224018 to your computer and use it in GitHub Desktop.

Select an option

Save rbuels/224018 to your computer and use it in GitHub Desktop.
Index: lib/Module/Install.pm
===================================================================
--- lib/Module/Install.pm (revision 9914)
+++ lib/Module/Install.pm (working copy)
@@ -116,9 +116,14 @@
$^H |= strict::bits(qw(refs subs vars));
+# add a warning to the end of @INC, so that if a module load failure
+# happens in a Makefile.PL, add a helpful warning
+push @INC, sub {
+ warn "Module::Install: $_[1] is required to configure this module:\n";
+ return;
+};
-
use Cwd ();
use File::Find ();
use File::Path ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment