develooper Front page | perl.perl5.porters | Postings from September 2012

Re: Changing the Perl error message when a module is not found

Thread Previous | Thread Next
From:
David Golden
Date:
September 18, 2012 08:49
Subject:
Re: Changing the Perl error message when a module is not found
Message ID:
CAOeq1c9MuqeMq6thD41zvKMDymaF+o8p8hX-0Cn1v-Nge+t2pg@mail.gmail.com
On Tue, Sep 18, 2012 at 9:35 AM, Jesse Luehrs <doy@tozt.net> wrote:
>>  Can't locate LWP/UserAgent.pm in @INC (perhaps you forgot to install "LWP::UserAgent"?) (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at -e line 1.

+1 -- converting to the module name with a "perhaps you forgot..."
seems helpful and minimal.

Someone sufficiently motivated should make this change and smoke part
of CPAN and see what breaks.  (E.g. smoke Task::Kensho or something.)

David

-- 
David Golden <xdg@xdg.me>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About