Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl modules possible to place some where else

by Tomte (Priest)
on May 10, 2004 at 14:31 UTC ( [id://352072]=note: print w/replies, xml ) Need Help??


in reply to Perl modules possible to place some where else

Edit: forget the code, but read the perldoc!

use lib '.';

read more at > perldoc lib your local prompt :)

regards,
tomte


An intellectual is someone whose mind watches itself.
-- Albert Camus

Replies are listed 'Best First'.
•Re: Re: Perl modules possible to place some where else
by merlyn (Sage) on May 10, 2004 at 14:50 UTC
    No.

    First, @INC already includes dot (unless you're root), so this doesn't change a thing.

    Second, the "." here refers to the current directory of the process running the script, not the immediate directory in which the script is located.

    See the other correct answers elsewhere in this thread.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found