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.