in reply to locating modules in local dir

You could say
use lib "/your/module/directory";
Note that this will only work for modules with simple names, not for the ones that have the double colon (::) in the name. For those modules, you will still have to provide the appropriate subdirectory tree.

Replies are listed 'Best First'.
Re: locating modules in local dir
by b10m (Vicar) on Feb 25, 2004 at 17:20 UTC
    "Note that this will only work for modules with simple names, not for the ones that have the double colon (::) in the name. For those modules, you will still have to provide the appropriate subdirectory tree."

    This is not true. For example: /your/module/directory/Special/Module.pm will be accessable using:

    use lib "/your/module/directory"; use Special::Module;

    Update: maybe I don't get your comment right, but I don't see what you mean with "provide the appropriate subdirectory tree."

    --
    b10m

    All code is usually tested, but rarely trusted.