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:
vadim.konovalov
Date:
September 17, 2012 00:25
Subject:
RE: Changing the Perl error message when a module is not found
Message ID:
35BF8D9716175C43BB9D67CA60CC345E3D2451F2@FRMRSSXCHMBSC2.dc-m.alcatel-lucent.com
> From: Michael Stapelberg

> Therefore, what do you think about changing the Perl error 
> message when
> modules are not found to something like this?
> 
>     ERROR: Could not load Perl module LWP::UserAgent
> 
>     I looked for LWP/UserAgent.pm in these paths (@INC):
>     /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
> 
>     Try installing LWP::UserAgent, for example with cpan -i
>     LWP::UserAgent

I dislike this advice, because this guess is correct in some 90%
cases but is wrong in other 10%, and dealing with error in these
10% becomes harder.

Next, it suggests one way of resolving but does not suggests another, 
which is also bad..

Wrong guesses from SW are bad, IMO.
Especially when they trying to help newbies with a cost of confusing
ordinary users.

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