Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I agree that "Can't locate Foo.pm in @INC" is a very poor error message. For a new user is must be worse than meaningless and as an experienced user the handful of times that it has been useful to me (i.e. messed up paths and not missing modules) I could have figured out anyway with perl -V or similar.

    A Google search for Can't locate in @INC [google.ie] turns up 128,000.00 hits. That is a large number but even more telling is the wide range of forums that they appear in. The "@INC" message is clearly a hinderance to new users.

    An example of a similar but much clearer error message from perl is "Can't locate object method 'new' via package 'Foo' (perhaps you forgot to load 'Foo'?)". A Google search for Can't locate object method "new" via package [google.com] give only 25,000 hits by comparison.

    I don't imagine that anyone would have the appetite to change the "@INC" message at this stage but it clearly doesn't work as it is, in any sort of useful way.

    John.
    --