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:
Michael Stapelberg
Date:
September 18, 2012 02:42
Subject:
Re: Changing the Perl error message when a module is not found
Message ID:
x67grrzmyg.fsf@midna.zekjur.net
Hi Aristotle,

Aristotle Pagaltzis <pagaltzis@gmx.de> writes:
>  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.
Thanks for this suggestion. One important thing is missing, though:

'perhaps you forgot to install _the Perl module_ "LWP::UserAgent"?'

This will tell people who are unaware that this software is written in
Perl (even though the word perl is mentioned multiple times in the @INC
contents which follows the message, people might not read that far or
come to that conclusion) and it will explain how names of Perl modules
look like. Also, it provides an additional keyword for a web search to
solve this problem.

-- 
Best regards,
Michael

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