in reply to using my module.pm in different directory error
Hi t-rex,
If your module files are always located in the same place in the file system, use
use lib '/absolute/path/to/modules';
If your module files are always located in the same place relative to the script, use
use FindBin; use lib "$FindBin::Bin/path/to/modules";
Both solutions are independent of the current working directory because they use absolute paths.
Also, you wrote "use Yaml_Lib.pm", I'm assuming you meant "use Yaml_Lib;" because the .pm extension is added automatically by Perl.
Hope this helps,
-- Hauke D
|
|---|