in reply to Re: using perl plug-ins
in thread using perl plug-ins
If you do something like this, remember that Plug-Ins is not a valid package name. Also, remember that the file that you use has to think that it is defining a package called "Plugin::Find", not just "Find". The file will be required, but the package will not be import()ed, unless the OP edits his modules to use the new qualified package name.
This solution also assumes that "." (the CWD) is in the OP @INC, and that the OP will only ever run it from that directory.
The best solution is just to use lib, though, with a full qualified path:
use lib '/some/dir/Plug-Ins/'; use Find;
|
|---|