How to include CPAN packages inside my application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Levinson
    New Member
    • Jul 2010
    • 1

    How to include CPAN packages inside my application

    Hello -

    I am a Perl programmer who's developing a Cocoa application with a development team. Our Cocoa-based application is going to execute some Perl scripts to take care of some systems administration tasks at various times.

    I've programmed my Perl script using the DBI:: and DBD::SQLite Perl CPAN packages, but I'm concerned that these packages aren't in a standard Perl installation on OS X 10.6.

    What are some of my options to include these packages inside my application so Perl on the system can be executed and these packages recognizable by Perl?

    Thank you!
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    I used to put all the compiled perl modules in a folder and the folder will be part of the application folder which is having scripts and other config.
    So when somebody deploys the same they need to change the config file to change the application directory and all Perl Libs shuld be taken from there(The PERL5LIB path shuld be defined with reference to Application path in config)

    Raghu

    Comment

    Working...