Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Including files

by jdporter (Canon)
on Dec 09, 2011 at 14:38 UTC ( #942680=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Including files
in thread Including files

Did i get it right that

No. Read lib. use lib 'cow'; is the standard, clean alternative to unshift @INC, 'cow'; It adds a directory to the search locations; it does not identify or pull in any files into the current program.

if i keep all my project files in the same directory, ... "use lib" will work "as expected".

No; if you do that, then you never need use lib ... at all, for the simple reason that '.' is in @INC by default.

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.


Comment on Re^4: Including files
Select or Download Code
Re^5: Including files
by chacham (Vicar) on Dec 13, 2011 at 20:42 UTC
    Please give an example. I would like to get this clear.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2015-07-02 05:51 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 (29 votes), past polls