I have inherited a few perl scripts and noticed they use modules to run. I have installed the modules on my computer and the code works. However, I was hoping to distribute the code to others but I dont want to make them download the modules to make it run is there a way to package it all together? Ive never done much of anything with perl. If someone could point me in the right direction I would appreciate it.
perl code and modules utilized
Collapse
X
-
Tags: None
-
Distribute the modules with your code and instruct the user to upload all the modules into a specific folder, for example, have them create a folder in the cgi-bin named "mymodules" (or something more appropriate) and in your main perl script(s) use the "lib" pragma to add them to @INC:
use lib 'path/to/mymodules';
perldoc: lib pragma
or use "require" to include them. -
Comment