perl code and modules utilized

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cookspyder
    New Member
    • Jul 2007
    • 20

    perl code and modules utilized

    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.
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    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

    • cookspyder
      New Member
      • Jul 2007
      • 20

      #3
      Thanks for the help! That makes things alot easier.

      Comment

      Working...