in reply to Modules 101 :: Using a Local Module from CPAN
use lib '/path/to/my/modules'; use Script::Singleton;
If the module is located in a place relative to the script, you can use FindBin:
use FindBin; use lib "$FindBin::Bin/lib"; use Script::Singleton;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Modules 101 :: Using a Local Module from CPAN
by redapplesonly (Sexton) on Dec 06, 2022 at 18:13 UTC | |
by hv (Prior) on Dec 06, 2022 at 18:46 UTC | |
by redapplesonly (Sexton) on Dec 06, 2022 at 19:41 UTC |