http://www.perlmonks.org?node_id=1020623


in reply to Bad Name or Missing @INC entry - "require" path fail.

Thanks for the replies so far.

Reading, I found

http://perl.apache.org/docs/general/perl_reference/perl_reference.html#use____require____do_____INC_and__INC_Explained

which points out:

First, let's see what are the contents of @INC on my system: % perl -e 'print join "\n", @INC' /usr/lib/perl5/site_perl/5.005 . Notice the . (current directory) is the last directory in the list.
And I note that in the error message I receive, "." is the last entry. That is, @INC does in fact have the current directory in it. So I think that when I use the correct relative path, "../", it is finding it.

So the mystery is the original "bad name" error.




Time flies like an arrow. Fruit flies like a banana.