Suggestions for distributing my Perl program

F

freesoft12

Hi,

I want to create a Perl program that contains a script, say run.pl,
(that the user executes) and uses code from supporting modules
(multiple .pm files). These perl files will be installed in any
directory.

I currently have in mind this kind of installation hierarchy:

<install location>/MYTOOL/bin/run.pl
<install location>/MYTOOL/modules/Options.pm
<install location>/MYTOOL/modules/Utils.pm
<install location>/MYTOOL/modules/DB.pm

Questions:

1) How can run.pl import these modules, Options.pm etc?
2) Is there a standard way of installing my program?

Regards
John
 
K

Klaus

I want to create a Perl program that contains a script, say run.pl,
(that the user executes) and uses code from supporting modules
(multiple .pm files). These perl files will be installed in any
directory.

I currently have in mind this kind of installation hierarchy:

<install location>/MYTOOL/bin/run.pl
<install location>/MYTOOL/modules/Options.pm
<install location>/MYTOOL/modules/Utils.pm
<install location>/MYTOOL/modules/DB.pm

Questions:

1)  How can run.pl import these modules, Options.pm etc?
2) Is there a standard way of installing my program?

See Perlfaq8

+ How do I keep my own module/library directory?
+ How do I add the directory my program lives in to the module/library
search path?
+ How do I add a directory to my include path (@INC) at runtime?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top