Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Bad Name or Missing @INC entry - "require" path fail.

by punch_card_don (Curate)
on Feb 26, 2013 at 07:30 UTC ( #1020623=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Bad Name or Missing @INC entry - "require" path fail.
Download Code
Re^2: Bad Name or Missing @INC entry - "require" path fail.
by vinoth.ree (Parson) on Feb 26, 2013 at 07:41 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020623]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-12-26 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls