perldiverx has asked for the wisdom of the Perl Monks concerning the following question:

I've created a class using Class::DBI in a compiled program. The problem I'm having is that in order to use Class::DBI you need to have the line use base 'Class::DBI'; and this normally isn't a problem, except that use base is really calling require and the machine that I'm running this program on does not have Class::DBI installed on it. My question is how can I get this compiled program to work without installing Class::DBI?

Replies are listed 'Best First'.
Re: Class::DBI and compiling
by marto (Cardinal) on Jul 10, 2014 at 14:01 UTC

    Are you packaging this script or compiling it? Please explain what you did to create your compiled program.

      I compiled it and have instructed the compiler to include all necessary modules. The problem is that require calls the module in at run-time, not compile time.

        Perl has no compiler.

        So, how did you compile the script, and how did you instruct the compiler to include all necessary modules?

        Which 'compiler'?