t-rex has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, This is my directory structure
urs.pl src now this src contains server and client directories src-> server client and client contains Yaml_Lib.pm Client_lib.pm Run_lib.pm
now the urs.pl uses the files Yaml_libm.pm and others in the client folder.
I want to know how should I include them in my urs.pl , I checked on this site and I got to know about use lib ‘..’;
but when I do it I still get error that Yaml_Lib.pm and others not found in @INC
use lib ‘src/client/’; use Yaml_Lib.pm use Client_lib.pm
Note that this structure (entire scripts) can be in any directory eg; now my pwd is different it could be different on other machine but inside structure(scr/client/) remians constant.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using my module.pm in different directory error
by haukex (Archbishop) on Aug 10, 2016 at 09:41 UTC | |
Re: using my module.pm in different directory error
by beech (Parson) on Aug 10, 2016 at 06:44 UTC | |
Re: using my module.pm in different directory error
by hippo (Archbishop) on Aug 10, 2016 at 09:01 UTC | |
Re: using my module.pm in different directory error
by duyet (Friar) on Aug 10, 2016 at 08:47 UTC | |
by t-rex (Scribe) on Aug 10, 2016 at 09:02 UTC | |
by Laurent_R (Canon) on Aug 10, 2016 at 09:17 UTC |