Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
Replies are listed 'Best First'.
Re^2: Bad Name or Missing @INC entry - "require" path fail.
by vinoth.ree (Prior) 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 having an uproarious good time at the Monastery: (8)
As of 2015-07-31 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls