On Fri, Sep 20, 2013 at 09:12:44AM -0700, l.mai@web.de wrote: > % perl -e 'use Foo::Bar::Baz' > Can't locate Foo/Bar/Baz.pm in @INC (@INC contains: ...) at -e line 1. > BEGIN failed--compilation aborted at -e line 1. > > This message sometimes confuses people who are new to Perl (or just want to run > an application written in Perl). Would it be possible to add "Do you need to > install Foo::Bar::Baz?" or some other text that mentions the module name > somewhere? > > Something like: > - Can't locate Foo/Bar/Baz.pm in @INC (@INC contains: ...) at -e line 1. Do you need to install Foo::Bar::Baz? > - Can't locate Foo/Bar/Baz.pm in @INC (@INC contains: ...) (do you need to install Foo::Bar::Baz?) at -e line 1. > > Would this break anything? Also, suggestions regarding the wording welcome. Good idea! $ perl5.18.1 -e 'use Foo::Bar::Baz' Can't locate Foo/Bar/Baz.pm in @INC (you may need to install the Foo::Bar::Baz module) (@INC contains: ...) at -e line 1. :) -- Paul Johnson - paul@pjcj.net http://www.pjcj.netThread Previous | Thread Next