in reply to PM module question/improvements
The error means it can't find the module files, that's all. If they exist they are installed; just tell perl where they live by adding to @INC or with lib and/or FindBin.
From the command line:
perl -I/path/to/module/directory -MMyModule -E 'my $foo = MyModule->ne +w; say $foo->bar;'
In a script, if the script is in a directory and you know the module files are in a directory called `my_lib` at the same level:
use FindBin qw($RealBin); use lib "$RealBin/../my_lib"; use MyModule; my $foo = MyModule->new; say $foo->bar; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PM module question/improvements
by perlynewby (Scribe) on Nov 07, 2015 at 02:34 UTC | |
by 1nickt (Canon) on Nov 07, 2015 at 03:16 UTC | |
by Anonymous Monk on Nov 07, 2015 at 03:26 UTC | |
by perlynewby (Scribe) on Nov 07, 2015 at 04:05 UTC |