This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Suggest cause of error requiring .pm file.
authorPaul Johnson <paul@pjcj.net>
Wed, 26 Sep 2012 00:44:45 +0000 (02:44 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 30 Sep 2012 07:01:27 +0000 (00:01 -0700)
commitf7ee53b55241648302d3da2fac688b5a0d595fd7
treecc6802e24d29fd881f10eb14fcc1d9c45011d3f3
parent7ae5d31c28bff87535cb83fdb5c83abac5c5e3ad
Suggest cause of error requiring .pm file.

Following on from a recent thread I've put together a patch to expand
the error message when a module can't be loaded. With this patch,
instead of:

Can't locate Stuff/Of/Dreams.pm in @INC (@INC contains: ...)

You get:

Can't locate Stuff/Of/Dreams.pm in @INC (you may need to install the Stuff::Of::Dreams module) (@INC contains: ...)

[The committer tweaked the error message,
 based on a suggestion by Tony Cook.  See
 <https://rt.perl.org/rt3/Ticket/Display.html?id=115048#txn-1157750>.]
cpan/parent/t/parent.t
pp_ctl.c
t/op/require_errors.t